code: def test_invalid_memory_entry():
      memory_entry = build_memory_entry(
          local_ref_count=0,
          pinned_in_memory=False,
          submitted_task_reference_count=0,
          contained_in_owned=[],
          object_size=OBJECT_SIZE,
          pid=PID,
      )
      assert memory_entry.is_valid() is False
      memory_entry = build_memory_entry(
          local_ref_count=0,
          pinned_in_memory=False,
          submitted_task_reference_count=0,
          contained_in_owned=[],
          object_size=-1,
          pid=PID,
      )
      assert memory_entry.is_valid() is False
  
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 8 for calling a global function with example usage: test_invalid_memory_entry() without return types