code: def test_masked_binary_operations(self):
      # Tests masked_binary_operation
      (x, mx) = self.data
      # Result should be a MMatrix
      assert_(isinstance(add(mx, mx), MMatrix))
      assert_(isinstance(add(mx, x), MMatrix))
      # Result should work
      assert_equal(add(mx, x), mx + x)
      assert_(isinstance(add(mx, mx)._data, np.matrix))
      with assert_warns(DeprecationWarning):
          assert_(isinstance(add.outer(mx, mx), MMatrix))
      assert_(isinstance(hypot(mx, mx), MMatrix))
      assert_(isinstance(hypot(mx, x), MMatrix))
  
imports: import numpy
  from numpy.testing import assert_warns
  from numpy.ma.testutils import assert_, assert_equal, assert_raises, assert_array_equal
  from numpy.ma.core import masked_array, masked_values, masked, allequal, MaskType, getmask, MaskedArray, nomask, log, add, hypot, divide
  from numpy.ma.extras import mr_
  from numpy.compat import pickle
label_desc: Use image node_id 4 for calling the TestSubclassing obj's underlying member method code with example usage: obj.test_masked_binary_operations() without return types