code: def __init__(self, *args, **kwargs):
      super().__init__(*args, **kwargs)
      self.add_to_recordable_attributes(
          name="losses_size", is_stat=True
      )
  
imports: import torch
  from ..utils import common_functions
  from ..utils.module_with_records import ModuleWithRecords
label_desc: Use image node_id 1 to create a new BaseReducer object from inherited base classes: ModuleWithRecords with example: obj = BaseReducer()