code: def asmatrix(data, dtype=None):
      """
      Interpret the input as a matrix.
  
      Unlike `matrix`, `asmatrix` does not make a copy if the input is already
      a matrix or an ndarray.  Equivalent to ``matrix(data, copy=False)``.
  
      Parameters
      ----------
      data : array_like
          Input data.
      dtype : data-type
         Data-type of the output matrix.
  
      Returns
      -------
      mat : matrix
          `data` interpreted as a matrix.
  
      Examples
      --------
      >>> x = np.array([[1, 2], [3, 4]])
  
      >>> m = np.asmatrix(x)
  
      >>> x[0,0] = 5
  
      >>> m
      matrix([[5, 2],
              [3, 4]])
  
      """
      return matrix(data, dtype=dtype, copy=False)
  
imports: from __future__ import division, absolute_import, print_function
  import sys
  import warnings
  import ast
  import numpy.core.numeric
  from numpy.core.numeric import concatenate, isscalar
  from numpy.core.overrides import set_module
  from numpy.linalg import matrix_power
label_desc: Use image node_id 2 for calling a global function with example usage: asmatrix(data, dtype) and returns: matrix