code: def pdist(input, p=2):
      x = ivy.array(
          [
              abs(input[i] - input[j])
              for i in range(len(input) - 1)
              for j in range(i + 1, len(input))
          ]
      )
      return ivy.vector_norm(x, ord=p, axis=1)
  
imports: 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_unsupported_dtypes
label_desc: Use image node_id 3 for calling a global function with example usage: pdist(input, p) and returns: ivy