def abspath(resource_path: str):
    """
    Make a path absolute, but take into account prefixes like
    "http://" or "manifold://"
    """
    regex = re.compile(r"^\w+://")
    if regex.match(resource_path) is None:
        return os.path.abspath(resource_path)
    else:
        return resource_path

    Make a path absolute, but take into account prefixes like
    "http://" or "manifold://"
    
video_miniGPT4/minigpt4/common/utils.py