code: def _atleast_nd(a, ndim):
      # Ensures `a` has at least `ndim` dimensions by prepending
      # ones to `a.shape` as necessary
      return array(a, ndmin=ndim, copy=False, subok=True)
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  import operator
  import types
  import warnings
  from .None import numeric
  from .None import overrides
  from .numeric import array, asanyarray, newaxis
  from .multiarray import normalize_axis_index
label_desc: Use image node_id 16 for calling a global function with example usage: _atleast_nd(a, ndim) and returns: array