def METHOD_NAME(self):
    # concurrent.futures uses a __getattr__ hook. Its __all__ triggers
    # import of a submodule, which fails when _multiprocessing is not
    # available.
    if _multiprocessing is None:
        sys.modules["_multiprocessing"] = types.ModuleType("_multiprocessing")