code: def __init__(self):
      # Every memory allocation after `__enter__` method will be tracked.
      memray.Tracker(
          "/tmp/ray/session_latest/logs/"
          f"{ray.get_runtime_context().get_actor_id()}_mem_profile.bin"
      ).__enter__()
      self.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 to create a new Actor object  with example: obj = Actor()