<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_field(self, name, value, parse=False):
 """ Set the value of a field """

        # explicit getitem needed for ValueField
        try: 
            item = dict.__getitem__(self, name)
            item.set( item.parse(value) if parse else value  )
        except ValidationError as err:
            raise FieldValidationError(name, value, list(err))