code: def __init__(
      self, upsampling=True, interpolation="linear", dtype=None
  ):
      self._upsampling = upsampling
      if interpolation == "linear":
          self._get_filter_func = _get_linear_filter
      else:
          raise ValueError(
              "Unsupported interpolation method: {}".format(
                  interpolation
              )
          )
      super(_SamplingFilter, self).__init__(dtype)
  
file_path: chainer/chainer/initializers/sampling.py
imports: import numpy
  from chainer.backends import cuda
  from chainer import initializer
label_desc: Use image node_id 1 to create a new _SamplingFilter object from inherited base classes: initializer with example: obj = _SamplingFilter(upsampling, interpolation, dtype)