code: def gen_bin_files(n):
      with tempfile.TemporaryDirectory() as temp_dir:
          paths = []
          for i in range(n):
              path = os.path.join(temp_dir, f"{i}.bin")
              paths.append(path)
              fp = open(path, "wb")
              to_write = str(i) * 500
              fp.write(to_write.encode())
          yield (temp_dir, paths)
  
file_path: ray/python/ray/data/tests/util.py
imports: import functools
  import os
  import tempfile
  from contextlib import contextmanager
  import ray
  from ray.data._internal.execution.interfaces.physical_operator import DataOpTask, MetadataOpTask, PhysicalOperator
label_desc: Use image node_id 1 for calling a global function with example usage: gen_bin_files(n) without return types