def set_field_value(self, data, field, value):
        starting_reference = data

        path = field.get('path', field['name'])
        for part in path.split('.'):
            if data not in part:
                data[part] = {}
            last_reference = data
            data = data[part]

        last_reference[path.split('.')[-1]] = value

        return starting_reference
dataset/ETHPy150Open coddingtonbear/jirafs/jirafs/commands/create.py/Command.set_field_value/swapped operands of `not in`