code: def test_reference_type():
      # pinned in memory
      memory_entry = build_pinned_in_memory_entry()
      assert (
          memory_entry.reference_type
          == ReferenceType.PINNED_IN_MEMORY.value
      )
  
      # used by pending task
      memory_entry = build_used_by_pending_task_entry()
      assert (
          memory_entry.reference_type
          == ReferenceType.USED_BY_PENDING_TASK.value
      )
  
      # captued in object
      memory_entry = build_captured_in_object_entry()
      assert (
          memory_entry.reference_type
          == ReferenceType.CAPTURED_IN_OBJECT.value
      )
  
      # actor handle
      memory_entry = build_actor_handle_entry()
      assert (
          memory_entry.reference_type
          == ReferenceType.ACTOR_HANDLE.value
      )
  
file_path: ray/dashboard/tests/test_memory_utils.py
imports: import ray
  from ray.dashboard.memory_utils import ReferenceType, decode_object_ref_if_needed, MemoryTableEntry, MemoryTable, SortingType
label_desc: Use image node_id 10 for calling a global function with example usage: test_reference_type() without return types