class_docstr: Initializes array with the identity matrix.
  
  It initializes the given array with the constant
  multiple of the identity matrix.
  Note that arrays to be passed must be 2D squared matrices.
  
  Attributes:
      scale (scalar): A constant to be multiplied to identity matrices.
code: def __call__(self, array):
      if self.dtype is not None:
          assert array.dtype == self.dtype
      shape = array.shape
      if len(shape) != 2 or shape[0] != shape[1]:
          raise ValueError(
              "Identity matrix initialization can only be used "
              "for 2D squared matrices."
          )
  
      device = backend.get_device_from_array(array)
      array[...] = device.xp.identity(shape[0]) * self.scale
  
imports: import numpy
  import chainer
  from chainer import backend
  from chainer import initializer
  from chainer import types
label_desc: Use image node_id 2 for calling the Identity obj's underlying member method code with example usage: obj.__call__(array) without return types