class_docstr: Base class for stats logging
      
code: def __init__(self):
      super().__init__()
      self.stats = {}
      # We only insert observer if the op is quantized with static quantization,
      # which is identified by activation_observer.dtype == quint8.  This is needed
      # when attaching Logger as observer for FX mode
      self.dtype = torch.quint8
  
imports: import torch
  import torch.nn
  import torch.ao.nn.quantized
  import torch.ao.nn.quantized.dynamic
  from torch.ao.quantization import prepare
  from typing import Dict, List, Optional, Any, Union, Callable, Set
  from torch.ao.quantization.quantization_mappings import get_default_compare_output_module_list
label_desc: Use image node_id 1 to create a new Logger object from inherited base classes: nn with example: obj = Logger()