code: def data_lines(memory_str):
      for line in memory_str.split("\n"):
          if (
              PINNED_IN_MEMORY in line
              or LOCAL_REF in line
              or USED_BY_PENDING_TASK in line
              or CAPTURED_IN_OBJECT in line
              or ACTOR_HANDLE in line
          ):
              yield line
          else:
              continue
  
imports: import os
  import time
  import numpy
  import pytest
  import ray
  from ray._private.internal_api import memory_summary
  from ray._private.test_utils import Semaphore, wait_for_condition
  from ray.cluster_utils import Cluster, cluster_not_supported
label_desc: Use image node_id 1 for calling a global function with example usage: data_lines(memory_str) without return types