docstr: This function performs element-wise power.
  
  Parameters
  ----------
  n : n is a scalar
  
  dtype : If dtype is not specified, the current dtype will be preserved.
docstr_tok: ["This","function","performs","element-wise","power",".","Parameters","--","--","--","--","--","n",":","n","is","a","scalar","dtype",":","If","dtype","is","not","specified",",","the","current","dtype","will","be","preserved","."]
code: def power(self, n, dtype=None):
      """
      This function performs element-wise power.
  
      Parameters
      ----------
      n : n is a scalar
  
      dtype : If dtype is not specified, the current dtype will be preserved.
      """
      if not isscalarlike(n):
          raise NotImplementedError("input is not scalar")
  
      data = self._deduped_data()
      if dtype is not None:
          data = data.astype(dtype)
      return self._with_data(data**n)
  
imports: import numpy
  from .base import spmatrix, _ufuncs_with_fixed_point_at_zero
  from .sputils import isscalarlike, validateaxis, matrix
label_desc: Use image node_id 16 for calling the _data_matrix obj's underlying member method code with example usage: obj.power(n, dtype) and returns: self