code: def getdebug(environ=os.environ, true_values=TRUE_VALUES):
      '''
      Get if app is expected to be ran in debug mode looking at environment
      variables.
  
      :param environ: environment dict-like object
      :type environ: collections.abc.Mapping
      :returns: True if debug contains a true-like string, False otherwise
      :rtype: bool
      '''
      return environ.get('DEBUG', '').lower() in true_valuef getdebug(environ=os.environ, true_values=TRUE_VALUES):
      '''
      Get if app is expected to be ran in debug mode looking at environment
      variables.
  
      :param environ: environment dict-like object
      :type environ: collections.abc.Mapping
      :returns: True if debug contains a true-like string, False otherwise
      :rtype: bool
      '''
      return environ.get('DEBUG', '').lower() in true_values
docs: Get if app is expected to be ran in debug mode looking at environment
      variables.
  
      :param environ: environment dict-like object
      :type environ: collections.abc.Mapping
      :returns: True if debug contains a true-like string, False otherwise
      :rtype: bool