@classmethoddefopen(cls,file:"File",location:list[dict]):"""Stream file from tar archive based on location in archive."""tar_file=cls.parent(file,location)loc=location[0]if(offset:=loc.get("offset",None))isNone:raiseVFileError("'offset' is not specified",file.source,file.path)if(size:=loc.get("size",None))isNone:raiseVFileError("'size' is not specified",file.source,file.path)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)