code: def batch_matmul_legalize(attrs, inputs, types):
      """Legalizes batch_matmul op.
  
      Parameters
      ----------
      attrs : tvm.ir.Attrs
          Attributes of current batch_matmul
      inputs : list of tvm.relay.Expr
          The args of the Relay expr to be legalized
      types : list of types
          List of input and output types
  
      Returns
      -------
      result : tvm.relay.Expr
          The legalized expr
      """
      # not to change by default
      # pylint: disable=unused-argument
      return None
  
imports: import logging
  import tvm
  from tvm import auto_scheduler, te
  from ..utils import get_const_tuple
label_desc: Use image node_id 2 for calling a global function with example usage: batch_matmul_legalize(attrs, inputs, types) and returns: None