code: def build_entry(
      object_size=OBJECT_SIZE,
      pid=PID,
      node_address=NODE_ADDRESS,
      reference_type=ReferenceType.PINNED_IN_MEMORY,
  ):
      if reference_type == ReferenceType.USED_BY_PENDING_TASK:
          return build_used_by_pending_task_entry(
              pid=pid,
              object_size=object_size,
              node_address=node_address,
          )
      elif reference_type == ReferenceType.LOCAL_REFERENCE:
          return build_local_reference_entry(
              pid=pid,
              object_size=object_size,
              node_address=node_address,
          )
      elif reference_type == ReferenceType.PINNED_IN_MEMORY:
          return build_pinned_in_memory_entry(
              pid=pid,
              object_size=object_size,
              node_address=node_address,
          )
      elif reference_type == ReferenceType.ACTOR_HANDLE:
          return build_actor_handle_entry(
              pid=pid,
              object_size=object_size,
              node_address=node_address,
          )
      elif reference_type == ReferenceType.CAPTURED_IN_OBJECT:
          return build_captured_in_object_entry(
              pid=pid,
              object_size=object_size,
              node_address=node_address,
          )
  
file_path: ray/python/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 7 for calling a global function with example usage: build_entry(object_size, pid, node_address, reference_type) and returns: build_used_by_pending_task_entry, build_local_reference_entry, build_pinned_in_memory_entry, build_actor_handle_entry, build_captured_in_object_entry