The beginning of any great algorithm for Compute-to-Data first starts by referencing the dataset file correctly on the Docker image. Here is the code in Javascript and in Python for how to correctly reference the dataset file that's local on the Docker container that you choose:
### Python
```
import csv
import json
import os
def get_input(local=False):
dids = os.getenv("DIDS", None)
if not dids:
print("No DIDs found in the environment. Aborting.")
return
dids = json.loads(dids)
for did in dids:
filename = f"data/inputs/{did}/0" # 0 for metadata service
print(f"Reading asset file {filename}.")
return filename
# Get the input filename using the get_input function