code: def _week_range(ref, shift=0):
      ref_day = ref.replace(hour=0, minute=0, second=0, microsecond=0)
      start = ref_day - timedelta(days=ref_day.weekday())
      shifted_start = start + timedelta(days=shift * 7)
      shifted_end = shifted_start + timedelta(days=7)
      return shifted_start, shifted_end
  
imports: from datetime import datetime, date, time, timedelta
  from guild import _yacc
  from .None import trlex
label_desc: Use image node_id 29 for calling a global function with example usage: _week_range(ref, shift) and returns: shifted_start,  shifted_end