code: def test_local_refcounts(ray_start_regular):
      obj_ref1 = ray.put(None)
      check_refcounts({obj_ref1: (1, 0)})
      obj_ref1_copy = copy.copy(obj_ref1)
      check_refcounts({obj_ref1: (2, 0)})
      del obj_ref1
      check_refcounts({obj_ref1_copy: (1, 0)})
      del obj_ref1_copy
      check_refcounts({})
  
imports: import copy
  import logging
  import os
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  import ray.cluster_utils
  from ray._private.test_utils import SignalActor, convert_actor_state, kill_actor_and_wait_for_failure, put_object, wait_for_condition, skip_flaky_core_test_premerge
label_desc: Use image node_id 5 for calling a global function with example usage: test_local_refcounts(ray_start_regular) without return types