code: def _date_for_medium(medium, ref):
      year, month, day = medium
      assert 0 <= year <= 100, year
      ref_c = ref.year // 100 * 100
      return date(ref_c + year, month, day)
  
imports: from datetime import datetime, date, time, timedelta
  from guild import _yacc
  from .None import trlex
label_desc: Use image node_id 10 for calling a global function with example usage: _date_for_medium(medium, ref) and returns: date