code: def test_prune_nest_at_index(nest, index):
      nest_copy = copy.deepcopy(nest)
  
      # handling cases where there is nothing to prune
      try:
          ivy.prune_nest_at_index(nest, index)
          _pnai(nest_copy, index)
      except Exception:
          warnings.warn("Nothing to delete.")
  
      assert nest == nest_copy
  
imports: import copy
  import warnings
  import pytest
  import numpy
  import ivy
label_desc: Use image node_id 22 for calling a global function with example usage: test_prune_nest_at_index(nest, index) without return types