<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_yaml(value, native_datetimes=True):
 """ Deserializes the given value from YAML. :param value: the value to deserialize :type value: str :param native_datetimes: whether or not strings that look like dates/times should be automatically cast to the native objects, or left as strings; if not specified, defaults to ``True`` :type native_datetimes: bool """


    if not yaml:
        raise NotImplementedError('No supported YAML library available')

    if native_datetimes:
        loader = NativeDatesYamlLoader
    else:
        loader = StringedDatesYamlLoader

    return yaml.load(value, Loader=loader)