code: def _get_axis_len(aname, a, axis):
      ax = axis
      if ax < 0:
          ax += a.ndim
      if 0 <= ax < a.ndim:
          return a.shape[ax]
      raise ValueError("'%saxis' entry is out of bounds" % (aname,))
  
imports: from warnings import warn
  import numpy
  from numpy import atleast_1d, atleast_2d
  from .flinalg import get_flinalg_funcs
  from .lapack import get_lapack_funcs, _compute_lwork
  from .misc import LinAlgError, _datacopied, LinAlgWarning
  from .decomp import _asarray_validated
  from .None import decomp, decomp_svd
  from ._solve_toeplitz import levinson
label_desc: Use image node_id 7 for calling a global function with example usage: _get_axis_len(aname, a, axis) and returns: a