code: def __init__(self, x):
      super(TanhGrad, self).__init__()
      # The original input `x` is only required for cuDNN.
      # If it is None, this class does not use cuDNN.
      # Note that x must be c-contiguous and it is checked
      # in Tanh.forward_gpu.
      self.x = x
  
imports: import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import function_node
  from chainer import utils
  from chainer.utils import type_check
  import chainerx
label_desc: Use image node_id 1 to create a new TanhGrad object from inherited base classes: function_node with example: obj = TanhGrad(x)