def test_import_fail(self):
        class Foo:
            def __init__(self):
                self.optimizationEnabled = True
                self.called = False
            @optimized
            def foo(self):
                self.called = True

        test_obj = Foo()
        test_obj.foo()
        assert test_obj.called, "If no cmodule exists, original method should be called"
If the import of the cmodules
dataset/ETHPy150Open T-002/pycast/pycast/tests/decoratorstest.py/OptimizedDecoratorTest.test_import_fail