def METHOD_NAME(url, *args, **kwargs):
    if url is None:
        url = os.getcwd()
    if os.path.exists(url):
        url = os.path.abspath(url)
        try:
            config = _get_remote_config(url)
            config.update(kwargs.get("config") or {})
            kwargs["config"] = config
            return Repo(url, *args, **kwargs)
        except NotDvcRepoError:
            pass  # fallthrough to _external_repo
    return _external_repo(url, *args, **kwargs)