code: def _batch_matmul(a, b, transa, transb, transout):
      a = a.reshape(a.shape[:2] + (-1,))
      b = b.reshape(b.shape[:2] + (-1,))
      return _matmul(a, b, transa, transb, transout)
  
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 9 for calling a global function with example usage: _batch_matmul(a, b, transa, transb, transout) and returns: _matmul