docstr: Counts the number of steps in an epoch.
docstr_tok: ["Counts","the","number","of","steps","in","an","epoch","."]
code: def steps(self):
      """Counts the number of steps in an epoch."""
      self._current_iter = 0
      while (
          self._inferred_steps is None
          or self._current_iter < self._inferred_steps
      ):
          self._current_iter += 1
          yield self._current_iter
  
file_path: AmpliGraph/ampligraph/datasets/data_adapter.py
imports: import contextlib
  import tqdm
  from tensorflow.python.framework import errors
  from .graph_data_loader import GraphDataLoader, NoBackend
  from .graph_partitioner import AbstractGraphPartitioner
  from .partitioned_data_manager import get_partition_adapter
label_desc: Use image node_id 3 for calling the DataHandler obj's underlying member method code with example usage: obj.steps() without return types