code: def batch_matmul(a, b, transa=False, transb=False):
      """Computes the batch matrix multiplications of two sets of arrays.
  
      Args:
          a (:class:`~chainer.Variable` or :ref:`ndarray`):
              The left operand of the batch matrix multiplications.
              A 2-D array of shape ``(B, N)`` is considered as B
              :math:`N \\times 1` matrices.
              A 3-D array of shape ``(B, M, N)`` is considered as B
              :math:`M \\times N` matrices.
          b (:class:`~chainer.Variable` or :ref:`ndarray`):
              The right operand of the batch matrix multiplications.
              Its array is treated as matrices in the same way as ``a``'s array.
          transa (bool): If ``True``, transpose each matrix in ``a``.
          transb (bool): If ``True``, transpose each matrix in ``b``.
  
      Returns:
          ~chainer.Variable: The result of the batch matrix multiplications as a
          3-D array.
  
      .. deprecated:: v3.0.0
         batch_matmul is deprecated. Use ``matmul`` instead.
  
      """
      warnings.warn(
          "batch_matmul is deprecated. Use matmul instead.",
          DeprecationWarning,
      )
      return BatchMatMul(transa=transa, transb=transb).apply((a, b))[0]
  
imports: import warnings
  import numpy
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  import chainer.functions
  from chainer import utils
  from chainer.utils import type_check
  import chainerx
label_desc: Use image node_id 10 for calling a global function with example usage: batch_matmul(a, b, transa, transb) and returns: BatchMatMul