code: def get_year_week(timestamp):
      
      time_ = datetime.fromtimestamp(timestamp)
      year = time_.isocalendar()[0]
      week = time_.isocalendar()[1]
      return year, week
docs: Get the year and week for a given timestamp.