docstr: Called at the beginning of a batch in `predict` methods.
  Subclasses should override for any actions to run.
  Note that if the `steps_per_execution` argument to `compile` in
  `tf.keras.Model` is set to `N`, this method will only be called every `N`
  batches.
  Args:
      batch: Integer, index of batch within the current epoch.
      logs: Dict. Currently no data is passed to this argument for this method
        but that may change in the future.
docstr_tok: ["Called","at","the","beginning","of","a","batch","in","`","predict","`","methods",".","Subclasses","should","override","for","any","actions","to","run",".","Note","that","if","the","`","steps_per_execution","`","argument","to","`","compile","`","in","`","tf.keras.Model","`","is","set","to","`","N","`",",","this","method","will","only","be","called","every","`","N","`","batches",".","Args",":","batch",":","Integer",",","index","of","batch","within","the","current","epoch",".","logs",":","Dict",".","Currently","no","data","is","passed","to","this","argument","for","this","method","but","that","may","change","in","the","future","."]
code: def on_predict_batch_begin(self, batch, logs=None):
      """Called at the beginning of a batch in `predict` methods.
      Subclasses should override for any actions to run.
      Note that if the `steps_per_execution` argument to `compile` in
      `tf.keras.Model` is set to `N`, this method will only be called every `N`
      batches.
      Args:
          batch: Integer, index of batch within the current epoch.
          logs: Dict. Currently no data is passed to this argument for this method
            but that may change in the future.
      """
      self.tf_callback.on_predict_batch_begin(batch, logs)
  
imports: import os
  import logging
  import shutil
  import tensorflow
  from bigdl.orca.learn.utils import get_replaced_path
  from bigdl.orca.data.file import put_local_files_with_prefix_to_remote, put_local_dir_tree_to_remote, put_local_file_to_remote
label_desc: Use image node_id 12 for calling the Callback obj's underlying member method code with example usage: obj.on_predict_batch_begin(batch, logs) without return types