code: def read_config(cls, configparser):
          
          config = dict()
          section = cls.__name__
          option = "warningregex"
          if configparser.has_option(section, option):
              value = configparser.get(section, option)
          else:
              value = None
          config[option] = value
          return config
docs: Read configuration file options.