code: def to_ts(ds: str) -> datetime:
      """Convert a DS string to a `datetime`."""
      return datetime.strptime(ds, DS_FRMT)
  
file_path: Ax/ax/utils/common/timeutils.py
imports: from datetime import datetime, timedelta
  from time import time
  from typing import Generator
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: to_ts(ds) and returns: datetime