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_Identity(self, expr):
      shape = expr.shape
      if all(dim.is_Integer for dim in shape):
          return "%s(%s)" % (
              self._module_format(self._module + ".eye"),
              self._print(expr.shape[0]),
          )
      else:
          raise NotImplementedError(
              "Symbolic matrix dimensions are not yet supported for identity matrices"
          )
  
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 31 for calling the NumPyPrinter obj's underlying member method code with example usage: obj._print_Identity(expr) and returns: unknown