

def to_dict(self):
    result = super(Bundle, self).to_dict()
    result['metadata'] = self.metadata.to_dicts(self.METADATA_SPECS)
    for metadata_row in result['metadata']:
        metadata_row['bundle_uuid'] = self.uuid
    result['dependencies'] = [dep.to_dict() for dep in self.dependencies]
    return result

dataset/ETHPy150Open codalab/codalab-cli/codalab/objects/bundle.py Bundle.to_dict/original