code: def test_map_nest_at_indices(nest, indices, fn, shallow):
      nest_copy = copy.deepcopy(nest)
      result = ivy.map_nest_at_indices(nest, indices, fn, shallow)
  
      def mnais(n, idxs, vs):
          [_mnai(n, index, vs) for index in idxs]
  
      mnais(nest_copy, indices, fn)
  
      assert result == nest_copy
      if shallow:
          assert nest == nest_copy
      else:
          assert nest != nest_copy
  
imports: import copy
  import warnings
  import pytest
  import numpy
  import ivy
label_desc: Use image node_id 14 for calling a global function with example usage: test_map_nest_at_indices(nest, indices, fn, shallow) without return types