code: def load_config(self, config):
          
  
          # Read AMP confifuration.
          # For ex, the AMP foo should have the following section:
          #
          # [foo]
          # enable=true
          # regex=\/usr\/bin\/nginx
          # refresh=60
          #
          # and optionnaly:
          #
          # one_line=false
          # option1=opt1
          # ...
          #
          amp_section = 'amp_' + self.amp_name
          if (hasattr(config, 'has_section') and
                  config.has_section(amp_section)):
              logger.debug("AMP - {}: Load configuration".format(self.NAME))
              for param, _ in config.items(amp_section):
                  try:
                      self.configs[param] = config.get_float_value(amp_section, param)
                  except ValueError:
                      self.configs[param] = config.get_value(amp_section, param).split(',')
                      if len(self.configs[param]) == 1:
                          self.configs[param] = self.configs[param][0]
                  logger.debug("AMP - {}: Load parameter: {} = {}".format(self.NAME, param, self.configs[param]))
          else:
              logger.debug("AMP - {}: Can not find section {} in the configuration file".format(self.NAME, self.amp_name))
              return False
  
          # enable, regex and refresh are mandatories
          # if not configured then AMP is disabled
          if self.enable():
              for k in ['regex', 'refresh']:
                  if k not in self.configs:
                      logger.warning("AMP - {}: Can not find configuration key {} in section {}".format(self.NAME, k, self.amp_name))
                      self.configs['enable'] = 'false'
          else:
              logger.debug("AMP - {} is disabled".format(self.NAME))
  
          # Init the count to 0
          self.configs['count'] = 0
  
          return self.enable()
docs: Load AMP parameters from the configuration file.