code: def dist(x, y, p=2):
      ret = ivy.vector_norm(ivy.subtract(x, y), ord=p)
      return ivy.reshape(ret, (1,))
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.paddle import promote_types_of_paddle_inputs
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 8 for calling a global function with example usage: dist(x, y, p) and returns: ivy