code: def permutation(x, /):
      if isinstance(x, int):
          x = ivy.arange(x)
      return ivy.shuffle(x)
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, from_zero_dim_arrays_to_scalar
  from ivy import with_supported_dtypes
label_desc: Use image node_id 20 for calling a global function with example usage: permutation() and returns: ivy