code: def __init__(self, *, batch_granularity: bool = False):
      super().__init__()
      self.batch_granularity = batch_granularity
      self.epoch_number = 0
  
imports: import csv
  import os
  from typing import Dict, Optional, TextIO
  from poutyne.framework.callbacks._utils import atomic_lambda_save
  from poutyne.framework.callbacks.callbacks import Callback
label_desc: Use image node_id 1 to create a new Logger object from inherited base classes: Callback with example: obj = Logger()