code: def utc_date_str_to_timestamp_ms(date_str: str) -> int:
      """Parses common date string formats into ms since the Unix epoch in UTC."""
      date = parse_local_date(date_str)
      # `timestamp` method doesn't work as expected unless we replace the timezone info this way.
      date = date.replace(tzinfo=pytz.UTC)
      return int(date.timestamp() * 1000)
  
imports: import datetime
  import pytz
  import re
label_desc: Use image node_id 4 for calling a global function with example usage: utc_date_str_to_timestamp_ms(date_str) and returns: int