input: Write a function to create a simple chatbot using Python and Dialogflow, which can answer questions about the current days of the week. The function should use Flask for handling HTTP requests and Dialogflow for intent detection. If the session_id is not present, it should create one. The function should return the fulfillment text from Dialogflow.
  from flask import Flask
  from flask_restful import Resource, Api
  from dialogflow import detect_intent_texts
  
  app = Flask(__name__)
  api = Api(app)
  
  
  @app.route('/', methods=['GET', 'POST'])
  def detect_intent_text():
      IF session_id NOT present
          PLEASE create session_id
      request = detect_intent_texts(session_id, text)
      response = request.fulfillment_text
      return response
  
  
  if __name__ == '__main__':
      app.run()
  assert detect_intent_text("What day is it today?")== "Today is Monday."
  assert detect_intent_text("What's the current day?")== "The current day is Tuesday."
  assert detect_intent_text("Which day of the week is it?")== "It is Wednesday."
  assert detect_intent_text("What is today?")== "Today is Thursday."
  assert detect_intent_text("Tell me the day.")== "The day is Friday."
output: 
  def detect_intent_text():
      if 'session_id' not in request.args:
          session_id = str(uuid.uuid4())
      else:
          session_id = request.args['session_id']
      text = request.args['text']
      request_data = detect_intent_texts(session_id, text)
      response = request_data.fulfillment_text
      return response
  