<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_value(self, value):
 """Parse string into instance of `datetime`."""

        if isinstance(value, datetime.datetime):
            return value
        if value:
            return parse(value)
        else:
            return None