code: def task():
      with memray.Tracker(
          "/tmp/ray/session_latest/logs/"
          f"{ray.get_runtime_context().get_task_id()}_mem_profile.bin"
      ):
          arr = bytearray(b"1" * 1000000)
  
file_path: ray/doc/source/ray-observability/doc_code/memray_profiling.py
imports: import memray
  import ray
  import memray
  import ray
label_desc: Use image node_id 1 for calling a global function with example usage: task() without return types