code: def christmas_day(gyear, observed):
      r"""Get Christmas Day for a given year.
  
      Parameters
      ----------
      gyear : int
          Gregorian year.
      observed : bool
          False if the exact date, True if the weekday.
  
      Returns
      -------
      xmas : int
          Christmas Day in RDate format.
      """
      xmas = gdate_to_rdate(gyear, 12, 25)
      if observed:
          if day_of_week(xmas) == 6:
              xmas -= 1
          if day_of_week(xmas) == 0:
              xmas += 1
      return xmas
  
imports: import calendar
  import logging
  import math
  import pandas
label_desc: Use image node_id 44 for calling a global function with example usage: christmas_day(gyear, observed) and returns: xmas