code: def __init__(
      self, reducer=None, aggregation_func=aggregation_func, **kwargs
  ):
      super().__init__(**kwargs)
      self.reducer = reducer if reducer is not None else MeanReducer()
      self.aggregation_func = aggregation_func
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/reducers/per_anchor_reducer.py
imports: import torch
  from ..utils import common_functions
  from .base_reducer import BaseReducer
  from .mean_reducer import MeanReducer
label_desc: Use image node_id 1 to create a new PerAnchorReducer object from inherited base classes: BaseReducer with example: obj = PerAnchorReducer(reducer, aggregation_func)