def METHOD_NAME(self):
    for typ in [numpy.int32, numpy.int64, numpy.float64]:
        scalar = typ(3)
        matrix = numpy.array([[4, 5, 6], [7, 8, 9]], dtype=typ)
        for op in ELEM_WISE_BINOPS:
            code = "a" + op + "b"
            self._test_binop(code, scalar, matrix)
            self._test_binop(code, matrix, scalar)
            self._test_binop(code, matrix, matrix)