code: def __imul__(self, other):  # self *= other
      if isscalarlike(other):
          self.data *= other
          return self
      else:
          return NotImplemented
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from .base import spmatrix, _ufuncs_with_fixed_point_at_zero
  from .sputils import isscalarlike, validateaxis, matrix
label_desc: Use image node_id 9 for calling the _data_matrix obj's underlying member method code with example usage: obj.__imul__(other) and returns: self, NotImplemented