code: def from_toml(value, native_datetimes=True):
      
  
      if not toml:
          raise NotImplementedError('No supported TOML library available')
  
      result = toml.loads(value)
  
      if native_datetimes:
          result = convert_datetimes(result)
  
      return result
docs: Deserializes the given value from TOML.
  
      :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