code: def datetime_from_isoformat(value: str):
      
      if sys.version_info >= (3, 7):
          return datetime.fromisoformat(value)
  
      return datetime.strptime(value, '%Y-%m-%dT%H:%M:%S.%f')
docs: Return a datetime object from an isoformat string.
  
      Args:
          value (str): Datetime string in isoformat.