code: def test_take_function(x, indices, axis, expected):
      """
      Indices respect relative order of a descending stable-sort
  
      See https://github.com/numpy/numpy/issues/20778
      """
      x = xp.asarray(x)
      indices = xp.asarray(indices)
      out = xp.take(x, indices, axis=axis)
      assert xp.all(out == xp.asarray(expected))
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_take_function(x, indices, axis, expected) without return types