code: def __init__(
      self,
      x,
      y=None,
      sample_weight=None,
      batch_size=None,
      steps_per_epoch=None,
      shuffle=False,
      class_weight=None,
      steps_per_execution=1,
  ):
      self.steps_per_epoch = steps_per_epoch
      self.steps_per_execution = steps_per_execution
      if steps_per_epoch:
          self._current_iterator = None
          self._insufficient_data = False
      self.data_adapter = data_adapters.get_data_adapter(
          x=x,
          y=y,
          sample_weight=sample_weight,
          batch_size=batch_size,
          steps_per_epoch=steps_per_epoch,
          shuffle=shuffle,
          class_weight=class_weight,
      )
      self._num_batches = self.data_adapter.num_batches
  
imports: import warnings
  from keras.trainers import data_adapters
label_desc: Use image node_id 1 to create a new EpochIterator object  with example: obj = EpochIterator(x, y, sample_weight, batch_size, steps_per_epoch, shuffle, class_weight, steps_per_execution)