code: def bmm(g: jit_utils.GraphContext, self, other):
      if symbolic_helper._try_get_scalar_type(self):
          old_type, self, other = _try_cast_integer_to_float(
              g, self, other
          )
          return _cast_to_type(g, g.op("MatMul", self, other), old_type)
      else:
          return g.op("MatMul", self, other)
  
imports: import functools
  import warnings
  import torch
  from torch._C import _onnx
  from torch.onnx import _type_utils, errors, symbolic_helper, symbolic_opset9
  from torch.onnx._internal import jit_utils, registration
label_desc: Use image node_id 9 for calling a global function with example usage: bmm(g, other) and returns: _cast_to_type, g