docstr: Check that 'not implemented' operations produce a failure.
docstr_tok: ["Check","that","'not","implemented","'","operations","produce","a","failure","."]
code: def test_notimplemented(self):
      """Check that 'not implemented' operations produce a failure."""
      A = matrix([[1.0, 2.0], [3.0, 4.0]])
  
      # __rpow__
      with assert_raises(TypeError):
          1.0**A
  
      # __mul__ with something not a list, ndarray, tuple, or scalar
      with assert_raises(TypeError):
          A * object()
  
imports: import collections.abc
  import numpy
  from numpy import matrix, asmatrix, bmat
  from numpy.testing import assert_, assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal, assert_raises
  from numpy.linalg import matrix_power
label_desc: Use image node_id 4 for calling the TestAlgebra obj's underlying member method code with example usage: obj.test_notimplemented() without return types