code: def test_memory_table_summary():
      entries = [
          build_pinned_in_memory_entry(),
          build_used_by_pending_task_entry(),
          build_captured_in_object_entry(),
          build_actor_handle_entry(),
          build_local_reference_entry(),
          build_local_reference_entry(),
      ]
      memory_table = MemoryTable(entries)
      assert len(memory_table.group) == 1
      assert memory_table.summary["total_actor_handles"] == 1
      assert memory_table.summary["total_captured_in_objects"] == 1
      assert memory_table.summary["total_local_ref_count"] == 2
      assert (
          memory_table.summary["total_object_size"]
          == len(entries) * OBJECT_SIZE
      )
      assert memory_table.summary["total_pinned_in_memory"] == 1
      assert memory_table.summary["total_used_by_pending_task"] == 1
  
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 11 for calling a global function with example usage: test_memory_table_summary() without return types