code: def __call__(self, rule, param):
      g = param.grad
      with cuda.get_device_from_array(g):
          g *= self.rate
  
imports: from chainer.backends import cuda
label_desc: Use image node_id 2 for calling the GradientScaling obj's underlying member method code with example usage: obj.__call__(rule, param) without return types