code: def addmm(g: jit_utils.GraphContext, self, mat1, mat2, beta, alpha):
      if symbolic_helper._try_get_scalar_type(self):
          old_type, self, mat1, mat2 = _try_cast_integer_to_float(
              g, self, mat1, mat2
          )
          return _cast_to_type(
              g,
              g.op(
                  "Gemm",
                  mat1,
                  mat2,
                  self,
                  beta_f=symbolic_helper._scalar(beta),
                  alpha_f=symbolic_helper._scalar(alpha),
              ),
              old_type,
          )
      else:
          return g.op(
              "Gemm",
              mat1,
              mat2,
              self,
              beta_f=symbolic_helper._scalar(beta),
              alpha_f=symbolic_helper._scalar(alpha),
          )
  
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 13 for calling a global function with example usage: addmm(g, mat1, mat2, beta, alpha) and returns: _cast_to_type, g