code: def test_prune_nest_at_indices(nest, indices):
      nest_copy = copy.deepcopy(nest)
      ivy.prune_nest_at_indices(nest_copy, indices)
      print(nest_copy)
      for idx in indices:
          try:
              ele_org = ivy.index_nest(nest, idx)
              ele_new = ivy.index_nest(nest_copy, idx)
          except ivy.utils.exceptions.IvyIndexError:
              return
          else:
              assert ele_org != ele_new
  
imports: import copy
  import warnings
  import pytest
  import numpy
  import ivy
label_desc: Use image node_id 23 for calling a global function with example usage: test_prune_nest_at_indices(nest, indices) without return types