def METHOD_NAME(request):
    """
    Workaround pytest-dev/pytest-xdist#376
    ``pytest-xdist`` tends to inject '' into ``sys.path``,
    which may break certain isolation expectations.
    Remove the entry so the import
    machinery behaves the same irrespective of xdist.
    """
    if not request.config.pluginmanager.has_plugin('xdist'):
        return
    with contextlib.suppress(ValueError):
        sys.path.remove('')