code: def _autodetect_steps_per_epoch(self):
      if self.params.get("steps"):
          # The number of steps is provided in the parameters.
          return self.params["steps"]
      elif self.params.get("samples") and self.params.get("batch_size"):
          # Compute the number of steps per epoch using # of samples and a batch size.
          return self.params["samples"] // self.params["batch_size"]
      else:
          raise ValueError(
              "Could not autodetect the number of steps per epoch. "
              "Please specify the steps_per_epoch parameter to the "
              "%s() or upgrade to the latest version of Keras."
              % self.__class__.__name__
          )
  
imports: from packaging import version
  import warnings
  import horovod.tensorflow
  import tensorflow
label_desc: Use image node_id 2 for calling the LearningRateScheduleCallbackImpl obj's underlying member method code with example usage: obj._autodetect_steps_per_epoch() and returns: self, unknown