code: def load_config(self, conf):
          
          section = self.__class__.__name__
  
          if section not in conf.sections():
              logger.debug('Config section {} not in rc file'.format(
                  self.__class__.__name__))
              return
  
          for key in conf[section].keys():
              if not hasattr(self, key):
                  logger.debug('Config key {}.{} skipped'.format(section, key))
                  continue
  
              val = conf[section].get(key)
  
              try:
                  val = conf[section].getfloat(key)
              except ValueError:
                  try:
                      val = conf[section].getboolean(key)
                  except ValueError:
                      pass
  
              self.__dict__.update({key: val})
  
          self.check()
docs: Load configurations from an rc file
  
          Parameters
          ----------
          rc: str
              path to the rc file
  
          Returns
          -------
          None