code: def is_generator_like(data):
      # Checks if data is a generator, Sequence, or Iterator.
  
      types = (tf.keras.utils.Sequence,)
      iterator_ops = wandb.util.get_module(
          "tensorflow.python.data.ops.iterator_ops"
      )
      if iterator_ops:
          types = types + (iterator_ops.Iterator,)
          # EagerIterator was in tensorflow < 2
          if hasattr(iterator_ops, "EagerIterator"):
              types = types + (iterator_ops.EagerIterator,)
          elif hasattr(iterator_ops, "IteratorV2"):
              types = types + (iterator_ops.IteratorV2,)
      return (
          hasattr(data, "next")
          or hasattr(data, "__next__")
          or isinstance(data, types)
      )
  
imports: import logging
  import operator
  import os
  import shutil
  import sys
  from itertools import chain
  import numpy
  import tensorflow
  import tensorflow.keras.backend
  import wandb
  from wandb.sdk.integration_utils.data_logging import ValidationDataLogger
  from wandb.sdk.lib.deprecate import Deprecated, deprecate
  from wandb.util import add_import_hook
label_desc: Use image node_id 4 for calling a global function with example usage: is_generator_like(data) and returns: unknown