def cached_path_from_pm(url_or_filename):
    """
    Tries to cache the specified URL using PathManager class.
    Returns the cached path if success otherwise failure.
    """
    try:
        from fairseq.file_io import PathManager

        local_path = PathManager.get_local_path(url_or_filename)
        return local_path
    except Exception:
        return None

    Tries to cache the specified URL using PathManager class.
    Returns the cached path if success otherwise failure.
    
understand_icl/fairseq/fairseq/file_utils.py