code: def previous_week_day(base_date, weekday):
      """
      Finds previous weekday
      """
      day = base_date - timedelta(days=1)
      while day.weekday() != weekday:
          day = day - timedelta(days=1)
      return day
  
file_path: ChatterBot/chatterbot/parsing.py
imports: import re
  from datetime import timedelta, datetime
  import calendar
label_desc: Use image node_id 9 for calling a global function with example usage: previous_week_day(base_date, weekday) and returns: day