code: def import_mock(name, *args, **kwargs):
      
      if any(name.startswith(s) for s in mock_modules):
          return MockModule()
      return orig_import(name, *args, **kwargs)
docs: Mock all modules starting with one of the mock_modules names.