code: def num_batches(self):
      if self.steps_per_epoch:
          return self.steps_per_epoch
      # Either copied from the data_adapter, or
      # inferred at the end of an iteration.
      return self._num_batches
  
imports: import warnings
  from keras.trainers import data_adapters
label_desc: Use image node_id 4 for calling the EpochIterator obj's underlying member method code with example usage: obj.num_batches() and returns: self, self