keras/src/callbacks/tensorboard.py/TensorBoard/_implements_train_batch_hooks
class TensorBoard:    def _implements_train_batch_hooks(self):
        # Only call batch hooks when tracing or write_steps_per_second are
        # enabled
        return self._should_trace or self.write_steps_per_second