code: def convert_to_utc(value: dt.datetime | None) -> DateTime | None:
      """Create a datetime with the default timezone added if none is associated.
  
      :param value: datetime
      :return: datetime with tzinfo
      """
      if value is None:
          return value
  
      if not is_localized(value):
          from airflow.settings import TIMEZONE
  
          value = pendulum.instance(value, TIMEZONE)
  
      return pendulum.instance(value.astimezone(utc))
  
imports: from __future__ import annotations
  import datetime
  from typing import TYPE_CHECKING, overload
  import pendulum
  from dateutil.relativedelta import relativedelta
  from pendulum.datetime import DateTime
label_desc: Use image node_id 7 for calling a global function with example usage: convert_to_utc(value) and returns: pendulum, value