code: def __init__(
      self,
      reducer: MetricReducer,
      name: Optional[str],
      for_training: bool,
      for_validation: bool,
  ) -> None:
      self.reducer = reducer
      self.name = name
      self.for_training = for_training
      self.for_validation = for_validation
  
imports: import abc
  import enum
  import itertools
  from typing import Any, Callable, Dict, List, Optional, TypeVar, Union, overload
  import numpy
label_desc: Use image node_id 1 to create a new _WrappedReducer object  with example: obj = _WrappedReducer(reducer, name, for_training, for_validation)