code: def testArgsortStable(self):
      arr = constant_op.constant([1, 5, 2, 2, 3], dtype=dtypes.int32)
      ascending = [0, 2, 3, 4, 1]
      descending = [1, 4, 2, 3, 0]
      with self.cached_session():
          self.assertAllEqual(
              sort_ops.argsort(arr, direction="ASCENDING", stable=True),
              ascending,
          )
          self.assertAllEqual(
              sort_ops.argsort(
                  arr, direction="DESCENDING", stable=True
              ),
              descending,
          )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import sort_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 15 for calling the SortTest obj's underlying member method code with example usage: obj.testArgsortStable() without return types