code: def mm(input, mat2, *, out=None):
      if len(ivy.shape(input)) != 2 or len(ivy.shape(mat2)) != 2:
          raise RuntimeError("input must be 2D matrices")
      input, mat2 = torch_frontend.promote_types_of_torch_inputs(
          input, mat2
      )
      return ivy.matmul(input, mat2, out=out)
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  import ivy.functional.frontends.torch
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 18 for calling a global function with example usage: mm(input, mat2) and returns: ivy