class_docstr: Save profiles in specified step range to log directory.
code: def on_batch_begin(self, batch, logs=None):
      if batch == self.start_step_in_epoch and self.should_start:
          self.should_start = False
          profiler.start()
          tf.compat.v1.logging.info(
              "Profiler started at Step %s", self.start_step
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import time
  import tensorflow
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python import tf2
  from tensorflow.python.eager import profiler
label_desc: Use image node_id 3 for calling the ProfilerCallback obj's underlying member method code with example usage: obj.on_batch_begin(batch, logs) without return types