code: def veterans_day(gyear, observed):
      r"""Get Veteran's day for a given year.
  
      Parameters
      ----------
      gyear : int
          Gregorian year.
      observed : bool
          False if the exact date, True if the weekday.
  
      Returns
      -------
      veterans : int
          Veteran's Day in RDate format.
      """
      veterans = gdate_to_rdate(gyear, 11, 11)
      if observed and day_of_week(veterans) == 0:
          veterans += 1
      return veterans
  
imports: import calendar
  import logging
  import math
  import pandas
label_desc: Use image node_id 42 for calling a global function with example usage: veterans_day(gyear, observed) and returns: veterans