code: def _builtins_ndim(x):
      interface = get_deep_interface(x)
      x = ar.numpy.asarray(x, like=interface)
      return ar.ndim(x)
  
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 2 for calling a global function with example usage: _builtins_ndim(x) and returns: ar