def METHOD_NAME(uri: str) -> str:
    """Resolve path part of a URI if it's a local URI."""
    scheme = get_scheme(uri)
    if scheme not in ("file", ""):
        return uri
    path = get_path(uri)
    path = str(Path(path).resolve())
    return f"{scheme}://{path}" if scheme else path