

def update_in_memory(self, row, strict=False):
    metadata = row.pop('metadata', None)
    dependencies = row.pop('dependencies', None)
    if strict:
        precondition((metadata is not None), ('No metadata: %s' % (row,)))
        precondition((dependencies is not None), ('No dependencies: %s' % (row,)))
        if ('uuid' not in row):
            row['uuid'] = spec_util.generate_uuid()
    super(Bundle, self).update_in_memory(row)
    if (metadata is not None):
        self.metadata = Metadata(self.METADATA_SPECS, metadata)
    if (dependencies is not None):
        self.dependencies = [Dependency(dep) for dep in dependencies]

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