code: def unique(
      array,
      /,
      return_index=False,
      return_inverse=False,
      return_counts=False,
      axis=None,
  ):
      results = ivy.unique_all(array, axis=axis)
  
      fields = ["values"]
      if return_index:
          fields.append("indices")
      if return_inverse:
          fields.append("inverse_indices")
      if return_counts:
          fields.append("counts")
  
      Results = namedtuple("Results", fields)
  
      values = [results.values]
      if return_index:
          values.append(results.indices)
      if return_inverse:
          values.append(results.inverse_indices)
      if return_counts:
          values.append(results.counts)
  
      return Results(*values)
  
imports: from collections import namedtuple
  import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 3 for calling a global function with example usage: unique(return_index, return_inverse, return_counts, axis) and returns: Results