docstr: Assert that the response time did not exceed the maximum allowed amount.
  
  :param strict: If set to true, test will fail if the maximum duration is exceeded.
docstr_tok: ["Assert","that","the","response","time","did","not","exceed","the","maximum","allowed","amount",".",":","param","strict",":","If","set","to","true",",","test","will","fail","if","the","maximum","duration","is","exceeded","."]
code: def assert_response_duration_is_less_than(
      self, maximum_duration, strict=False
  ):
      """
      Assert that the response time did not exceed the maximum allowed amount.
  
      :param strict: If set to true, test will fail if the maximum duration is exceeded.
      """
      from sys import stdout
  
      duration = utils.get_response_time(self.chatbot)
  
      stdout.write("\nBENCHMARK: Duration was %f seconds\n" % duration)
  
      failure_message = (
          "{duration} was greater than the maximum allowed "
          "response time of {maximum_duration}".format(
              duration=duration, maximum_duration=maximum_duration
          )
      )
  
      if strict and duration > maximum_duration:
          raise AssertionError(failure_message)
      elif duration > maximum_duration:
          warn(failure_message)
  
imports: from unittest import skip
  from warnings import warn
  from random import choice
  from tests.base_case import ChatBotSQLTestCase, ChatBotMongoTestCase
  from chatterbot.trainers import ListTrainer, ChatterBotCorpusTrainer, UbuntuCorpusTrainer
  from chatterbot.logic import BestMatch
  from chatterbot import comparisons, response_selection, utils
label_desc: Use image node_id 1 for calling the BenchmarkingMixin obj's underlying member method code with example usage: obj.assert_response_duration_is_less_than(maximum_duration, strict) without return types