code: def get(config, key, default=None):
          
  
          if hasattr(config, key):
              return getattr(config, key)
          else:
              return default
docs: Gets a value from the config object, or return a default value if
          the parameter does not exist, like :py:meth:`dict.get` does.