Added a context aware class to raise import errors.

Sometimes while mocking tests we need to trigger `ImportError`'s in order to test for fallback code.