code: def test_nested_object_refs(ray_start_regular):
      address = ray_start_regular["address"]
      x_id = ray.put(np.zeros(100000))
      y_id = ray.put([x_id])
      z_id = ray.put([y_id])
      del x_id, y_id
      info = memory_summary(address)
      print(info)
      assert num_objects(info) == 3, info
      assert count(info, LOCAL_REF) == 1, info
      assert count(info, CAPTURED_IN_OBJECT) == 2, info
      del z_id
  
file_path: ray/python/ray/tests/test_memstat.py
imports: import os
  import time
  import numpy
  import pytest
  import ray
  from ray._private.internal_api import memory_summary
  from ray._private.test_utils import Semaphore, wait_for_condition
  from ray.cluster_utils import Cluster, cluster_not_supported
label_desc: Use image node_id 7 for calling a global function with example usage: test_nested_object_refs(ray_start_regular) without return types