code: def p_date_medium(p):
      "date : MEDIUMDATE"
      medium = p[1]
      p[0] = lambda ref: _date_for_medium(medium, ref)
  
imports: from datetime import datetime, date, time, timedelta
  from guild import _yacc
  from .None import trlex
label_desc: Use image node_id 9 for calling a global function with example usage: p_date_medium(p) without return types