code: def test_indexed_array_non_empty():
      list_ids = ["a", "b", "c"]
      array_ids = np.array([10, -1, 2])
      range_ids = range(106, 100, -2)
  
      values = np.random.rand(3, 4, 5)
  
      # this test uses 'is' checks to validate that there's no copying of data
      frame = IndexedArray(values)
      assert frame.index == range(3)
      assert frame.values is values
  
      frame = IndexedArray(values, index=list_ids)
      assert frame.index is list_ids
      assert frame.values is values
  
      frame = IndexedArray(values, index=array_ids)
      assert frame.index is array_ids
      assert frame.values is values
  
      frame = IndexedArray(values, index=range_ids)
      assert frame.index is range_ids
      assert frame.values is values
  
imports: import numpy
  import pytest
  from stellargraph import IndexedArray
label_desc: Use image node_id 2 for calling a global function with example usage: test_indexed_array_non_empty() without return types