code: def unique_counts(
      x: Union[tf.Tensor, tf.Variable],
      /,
  ) -> Tuple[
      Union[tf.Tensor, tf.Variable], Union[tf.Tensor, tf.Variable]
  ]:
      Results = namedtuple("Results", ["values", "counts"])
      v, _, c = tf.unique_with_counts(tf.sort(tf.reshape(x, [-1])))
      v = tf.cast(v, dtype=x.dtype)
      c = tf.cast(c, dtype=tf.int64)
      return Results(v, c)
  
file_path: ivy/ivy/functional/backends/tensorflow/set.py
imports: import tensorflow
  from typing import Tuple, Union, Optional
  from collections import namedtuple
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
label_desc: Use image node_id 2 for calling a global function with example usage: unique_counts() and returns: Results