code: def argsort(
      x: Union[tf.Tensor, tf.Variable],
      /,
      *,
      axis: int = -1,
      descending: bool = False,
      stable: bool = True,
      out: Optional[Union[tf.Tensor, tf.Variable]] = None,
  ) -> Union[tf.Tensor, tf.Variable]:
      direction = "DESCENDING" if descending else "ASCENDING"
      x = tf.convert_to_tensor(x)
      ret = tf.argsort(x, axis=axis, direction=direction, stable=stable)
      return tf.cast(ret, dtype=tf.int64)
  
file_path: ivy/ivy/functional/backends/tensorflow/sorting.py
imports: import tensorflow
  from typing import Union, Optional, Literal, List
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
label_desc: Use image node_id 1 for calling a global function with example usage: argsort() and returns: tf