code: def matrix_norm(
      input,
      ord="fro",
      dim=(-2, -1),
      keepdim=False,
      *,
      dtype=None,
      out=None,
  ):
      if "complex" in ivy.as_ivy_dtype(input.dtype):
          input = ivy.abs(input)
      if dtype:
          input = ivy.astype(input, ivy.as_ivy_dtype(dtype))
      return ivy.matrix_norm(
          input, ord=ord, axis=dim, keepdims=keepdim, out=out
      )
  
imports: import math
  import ivy
  import ivy.functional.frontends.torch
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
  from collections import namedtuple
label_desc: Use image node_id 17 for calling a global function with example usage: matrix_norm(input, ord, dim, keepdim) and returns: ivy