code: def test_index_nest(nest, index):
      ret = ivy.index_nest(nest, index)
      true_ret = nest
      for i in index:
          true_ret = true_ret[i]
      assert ret == true_ret
  
imports: import copy
  import warnings
  import pytest
  import numpy
  import ivy
label_desc: Use image node_id 10 for calling a global function with example usage: test_index_nest(nest, index) without return types