code: def date_from_relative_day(base_date, time, dow):
      """
      Converts relative day to time
      Ex: this tuesday, last tuesday
      """
      # Reset date to start of the day
      base_date = datetime(
          base_date.year, base_date.month, base_date.day
      )
      time = time.lower()
      dow = dow.lower()
      if time == "this" or time == "coming":
          # Else day of week
          num = HASHWEEKDAYS[dow]
          return this_week_day(base_date, num)
      elif time == "last" or time == "previous":
          # Else day of week
          num = HASHWEEKDAYS[dow]
          return previous_week_day(base_date, num)
      elif time == "next" or time == "following":
          # Else day of week
          num = HASHWEEKDAYS[dow]
          return next_week_day(base_date, num)
  
file_path: ChatterBot/chatterbot/parsing.py
imports: import re
  from datetime import timedelta, datetime
  import calendar
label_desc: Use image node_id 4 for calling a global function with example usage: date_from_relative_day(base_date, time, dow) and returns: this_week_day, previous_week_day, next_week_day