code: def date_from_quarter(base_date, ordinal, year):
      """
      Extract date from quarter of a year
      """
      interval = 3
      month_start = interval * (ordinal - 1)
      if month_start < 0:
          month_start = 9
      month_end = month_start + interval
      if month_start == 0:
          month_start = 1
      return [
          datetime(year, month_start, 1),
          datetime(
              year, month_end, calendar.monthrange(year, month_end)[1]
          ),
      ]
  
file_path: ChatterBot/chatterbot/parsing.py
imports: import re
  from datetime import timedelta, datetime
  import calendar
label_desc: Use image node_id 3 for calling a global function with example usage: date_from_quarter(base_date, ordinal, year) and returns: list