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