code: def test_take(obj, ind, axis, expected):
      """
      Tests xp.take function
      """
      x = xp.asarray(obj)
      ind = xp.asarray(ind)
      out = xp.take(x, ind, 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(obj, ind, axis, expected) without return types