code: def normalize(input, p=2.0, dim=1, eps=1e-12, out=None):
      abs_square = ivy.pow(ivy.abs(input), p)
      sum_ = ivy.sum(abs_square, axis=dim, keepdims=True)
      pnorm_res = ivy.pow(sum_, 1.0 / p)
      max_ = ivy.maximum(pnorm_res, eps)
      return ivy.divide(input, max_, out=out)
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 19 for calling a global function with example usage: normalize(input, p, dim, eps, out) and returns: ivy