code: def _pnai(n, idx):
      if len(idx) == 1:
          del n[idx[0]]
      else:
          _pnai(n[idx[0]], idx[1:])
  
imports: import copy
  import warnings
  import pytest
  import numpy
  import ivy
label_desc: Use image node_id 2 for calling a global function with example usage: _pnai(n, idx) without return types