code: def __init__(
      self,
      serialization_dir: str,
      should_log_inputs: bool = True,
  ) -> None:
      super().__init__(serialization_dir)
      self._should_log_inputs = should_log_inputs
  
file_path: allennlp/allennlp/training/callbacks/console_logger.py
imports: import logging
  from typing import List, Dict, Any, Optional, TYPE_CHECKING
  import torch
  from allennlp.training.callbacks.callback import TrainerCallback
  from allennlp.training.util import get_train_and_validation_metrics
  from allennlp.data import TensorDict
label_desc: Use image node_id 1 to create a new ConsoleLoggerCallback object from inherited base classes: TrainerCallback with example: obj = ConsoleLoggerCallback(serialization_dir, should_log_inputs)