code: def get_utc_timestamp(dt):
      """
      Returns the Timestamp/DatetimeIndex
      with either localized or converted to UTC.
  
      Parameters
      ----------
      dt : Timestamp/DatetimeIndex
          the date(s) to be converted
  
      Returns
      -------
      same type as input
          date(s) converted to UTC
      """
  
      dt = pd.to_datetime(dt)
      try:
          dt = dt.tz_localize("UTC")
      except TypeError:
          dt = dt.tz_convert("UTC")
      return dt
  
imports: from datetime import datetime
  from functools import wraps
  from os import makedirs, environ
  from os.path import expanduser, join, getmtime, isdir
  import errno
  import warnings
  import numpy
  from numpy.lib.stride_tricks import as_strided
  import pandas
  from pandas.tseries.offsets import BDay
  from .deprecate import deprecated
label_desc: Use image node_id 9 for calling a global function with example usage: get_utc_timestamp(dt) and returns: dt