code: def test_memory_table_sort_by_object_size():
      unsort = [312, 214, -1, 1244, 642]
      entries = [
          build_entry(object_size=object_size) for object_size in unsort
      ]
      memory_table = MemoryTable(
          entries, sort_by_type=SortingType.OBJECT_SIZE
      )
      sort = sorted(unsort)
      for object_size, entry in zip(sort, memory_table.table):
          assert object_size == entry.object_size
  
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 14 for calling a global function with example usage: test_memory_table_sort_by_object_size() without return types