code: def from_yaml(value, native_datetimes=True):
      
  
      if not yaml:
          raise NotImplementedError('No supported YAML library available')
  
      if native_datetimes:
          loader = NativeDatesYamlLoader
      else:
          loader = StringedDatesYamlLoader
  
      return yaml.load(value, Loader=loader)
docs: 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