input: Write a python function to simulate a Dialogflow session interaction.
  assert simulate_dialogflow_interaction('project-id', 'session-id', 'Hello')==response.query_result.fulfillment_text
  assert simulate_dialogflow_interaction('project-id', 'session-id', 'How are you?')==response.query_result.fulfillment_text
  assert simulate_dialogflow_interaction('project-id', 'session-id', 'Tell me a joke')==response.query_result.fulfillment_text
output: def simulate_dialogflow_interaction(project_id, session_id, text):
      from google.cloud import dialogflow_v2 as dialogflow
      from google.oauth2 import service_account
  
      credentials = service_account.Credentials.from_service_account_file('path/to/your/service-account-file.json')
      session_client = dialogflow.SessionsClient(credentials=credentials)
  
      session = session_client.session_path(project_id, session_id)
  
      text_input = dialogflow.TextInput(text=text, language_code='en')
      query_input = dialogflow.QueryInput(text=text_input)
  
      response = session_client.detect_intent(request={"session": session, "query_input": query_input})
  
      return response.query_result.fulfillment_text