def METHOD_NAME(path: str) -> bool:
    """
    Check if the given path is either a valid URI or a local file
    :param path: Either local filesystem path or remote URI
    """
    try:
        BaseFileLocation.get_location_type(path)
    except ValueError:
        return False
    try:
        result = urlparse(path)
        if not (
            (result.scheme and result.netloc and (result.port or result.port is None))
            or os.path.isfile(path)
            or BaseFileLocation.check_non_existing_local_file_path(path)
            or glob.glob(result.path)
        ):
            return False
        return True
    except ValueError:
        return False