code: def test_set_nest_at_indices(nest, indices, values, shallow):
      nest_copy = copy.deepcopy(nest)
      result = ivy.set_nest_at_indices(
          nest, indices, values, shallow=shallow
      )
  
      def snais(n, idxs, vs):
          [_snai(n, index, value) for index, value in zip(idxs, vs)]
  
      snais(nest_copy, indices, values)
  
      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 25 for calling a global function with example usage: test_set_nest_at_indices(nest, indices, values, shallow) without return types