Reading a file from UDF

I am trying to read a file (sample.json) that is at the same location as python code.

Code below works with a compute module, but it does not seem to work with in a UDF.

with open("./client/queries/sample.json", "r") as file:
        content = file.read()
        print(content)

Can you advise on the path for UDF please?