[docs]defunpack_path(path:str)->Dict[str,str]:"""Unpack a path to its combination of project, asset, version, and (optionally) path, for easier use in the various pygobbler functions. Args: path: Relative path within the Gobbler registry. Return: Dictionary with the ``project``, ``asset``, ``version`` and ``path`` keys. All values are strings except for ``path``, which may be None. """components=path.split("/")iflen(components)<3:raiseValueError("expected at least 3 path components in 'path'")iflen(components)==3orcomponents[3]=="":path=Noneelse:path="/".join(components[3:])return{"project":components[0],"asset":components[1],"version":components[2],"path":path}