def METHOD_NAME(monkeypatch) -> typing.Callable:
    def _mock_is_file_result(result=True):
        def _file_exists(_):
            return result
        monkeypatch.setattr(os.path, "isfile", _file_exists)
    return _mock_is_file_result