code: def thanksgiving_day(gyear):
      r"""Get Thanksgiving Day for a given year.
  
      Parameters
      ----------
      gyear : int
          Gregorian year.
  
      Returns
      -------
      tday : int
          Thanksgiving Day in RDate format.
      """
      tday = nth_kday(4, 4, gyear, 11, 1)
      return tday
  
imports: import calendar
  import logging
  import math
  import pandas
label_desc: Use image node_id 43 for calling a global function with example usage: thanksgiving_day(gyear) and returns: tday