code: def __init__(
      self,
      w: np.ndarray,
      input_converter: Callable[[np.ndarray], np.ndarray],
  ) -> None:
      assert all(w > 0)
  
      self._w = w
      self._input_converter = input_converter
  
imports: from __future__ import annotations
  import abc
  from typing import Callable
  from typing import Union
  import numpy
label_desc: Use image node_id 1 to create a new WeightedSumReductionTransformation object from inherited base classes: BaseReductionTransformation with example: obj = WeightedSumReductionTransformation(w, input_converter)