code: def _unwrap_arraybox(arraybox, max_depth=None, _n=0):
      if max_depth is not None and _n == max_depth:
          return arraybox
  
      val = getattr(arraybox, "_value", arraybox)
  
      if hasattr(val, "_value"):
          return _unwrap_arraybox(val, max_depth=max_depth, _n=_n + 1)
  
      return val
  
imports: from importlib import import_module
  import autoray
  import numpy
  import semantic_version
  from scipy.linalg import block_diag
  from .utils import get_deep_interface
label_desc: Use image node_id 9 for calling a global function with example usage: _unwrap_arraybox(arraybox, max_depth, _n) and returns: val, arraybox, _unwrap_arraybox