code: def unique_consecutive(
      input, return_inverse=False, return_counts=False, dim=None
  ):
      output, inverse_indices, counts = ivy.unique_consecutive(
          input, axis=dim
      )
      ret = (output,)
      if return_inverse:
          ret += (inverse_indices,)
      if return_counts:
          ret += (counts,)
      return ret
  
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, numpy_to_torch_style_args
  from collections import namedtuple
  import ivy.functional.frontends.torch
label_desc: Use image node_id 26 for calling a global function with example usage: unique_consecutive(input, return_inverse, return_counts, dim) and returns: ret