parameters: (thing)
docstring: If THING is a time, date, or datetime, return a string representation of it
      otherwise, return THING unchanged.
docstring_summary: If THING is a time, date, or datetime, return a string representation of it
      otherwise, return THING unchanged.
docstring_tokens: If THING is a time date or datetime return a string representation of it otherwise return THING unchanged .
function: def _temporal_thing_to_string(thing):
      """
      If THING is a time, date, or datetime, return a string representation of it
      otherwise, return THING unchanged.
      """
      if isinstance(thing, datetime.time):
          return serialize_time(thing)
      elif isinstance(thing, datetime.datetime):
          return serialize_datetime(thing)
      elif isinstance(thing, datetime.date):
          return serialize_date(thing)
      else:
          return thing
function_tokens: def _temporal_thing_to_string ( thing ) : if isinstance ( thing , datetime . time ) : return serialize_time ( thing ) elif isinstance ( thing , datetime . datetime ) : return serialize_datetime ( thing ) elif isinstance ( thing , datetime . date ) : return serialize_date ( thing ) else : return thing