@classmethoddefopen(cls,file:"File",location:list[dict]):"""Stream file from tar archive based on location in archive."""iflen(location)>1:raiseVFileError(file,"multiple 'location's are not supported yet")loc=location[0]if(offset:=loc.get("offset",None))isNone:raiseVFileError(file,"'offset' is not specified")if(size:=loc.get("size",None))isNone:raiseVFileError(file,"'size' is not specified")if(parent:=loc.get("parent",None))isNone:raiseVFileError(file,"'parent' is not specified")tar_file=File(**parent)tar_file._set_stream(file._catalog)client=file._catalog.get_client(tar_file.source)fd=client.open_object(tar_file,use_cache=file._caching_enabled)returnFileSlice(fd,offset,size,file.name)