class_docstr: Numpy printer which handles vectorized piecewise functions,
  logical operators, etc.
class_docstr_tok: ["Numpy","printer","which","handles","vectorized","piecewise","functions",",","logical","operators",",","etc","."]
code: def _print_NDimArray(self, expr):
      if len(expr.shape) == 1:
          return (
              self._module + ".array(" + self._print(expr.args[0]) + ")"
          )
      if len(expr.shape) == 2:
          return self._print(expr.tomatrix())
      # Should be possible to extend to more dimensions
      return super()._print_not_supported(self, expr)
  
imports: from sympy.core import S
  from sympy.core.function import Lambda
  from sympy.core.power import Pow
  from .pycode import PythonCodePrinter, _known_functions_math, _print_known_const, _print_known_func, _unpack_integral_limits, ArrayPrinter
  from .codeprinter import CodePrinter
label_desc: Use image node_id 33 for calling the NumPyPrinter obj's underlying member method code with example usage: obj._print_NDimArray(expr) and returns: super, unknown, self