code: def inv(a):
      """Computes the inverse of square matrix.
  
          a (:class:`~chainer.Variable` or :ref:`ndarray`):
              Input array to compute the inverse for. Shape of
              the array should be ``(n, n)`` where ``n`` is the dimensionality of
              a square matrix.
  
      Returns:
          ~chainer.Variable: Matrix inverse of ``a``.
      """
      return Inv().apply((a,))[0]
  
imports: import numpy.linalg
  import chainer
  from chainer.backends import cuda
  from chainer import function_node
  import chainer.functions
  from chainer.functions.math import matmul
  from chainer import utils
  from chainer.utils import precision
  from chainer.utils import type_check
label_desc: Use image node_id 2 for calling a global function with example usage: inv(a) and returns: Inv