code: def memorial_day(gyear):
      r"""Get Memorial Day for a given year.
  
      Parameters
      ----------
      gyear : int
          Gregorian year.
  
      Returns
      -------
      md : int
          Memorial Day in RDate format.
      """
      md = last_kday(1, gyear, 5, 31)
      return md
  
imports: import calendar
  import logging
  import math
  import pandas
label_desc: Use image node_id 37 for calling a global function with example usage: memorial_day(gyear) and returns: md