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