input: 
  from typing import Dict
  
  def run_virtual_assistant(project_id: str, session_client, session) -> Dict:
      """ Runs a virtual assistant using Dialogflow to answer a basic set of questions.
      The assistant takes user input and uses Dialogflow to generate responses.
  
      >>> run_virtual_assistant('project-id', dialogflow.SessionsClient(), session_client.session_path('project-id', 'session-id'))
      {
          'User': 'Hello',
          'Assistant': 'Hi there!'
      }
      >>> run_virtual_assistant('project-id', dialogflow.SessionsClient(), session_client.session_path('project-id', 'session-id'))
      {
          'User': 'How are you?',
          'Assistant': 'I am just a virtual assistant, but I am functioning well!'
      }
      """
      while True:
          text = input('User: ')
          text_input = dialogflow.types.TextInput(text=text, language_code='en-US')
          query_input = dialogflow.types.QueryInput(text=text_input)
          response = session_client.detect_intent(session=session, query_input=query_input)
          print('Assistant:', response.query_result.fulfillment_text)
          return {'User': text, 'Assistant': response.query_result.fulfillment_text}
  
output:     while True:
          text = input('User: ')
          text_input = dialogflow.types.TextInput(text=text, language_code='en-US')
          query_input = dialogflow.types.QueryInput(text=text_input)
          response = session_client.detect_intent(session=session, query_input=query_input)
          print('Assistant:', response.query_result.fulfillment_text)
          return {'User': text, 'Assistant': response.query_result.fulfillment_text}