code: def get_config(name, expand=False):
      
      cfg = Config.instance()
      only_section = "." not in name
  
      # when only the section is given, print all keys
      if only_section:
          return "\n".join(cfg.keys(name))
  
      else:
          section, option = name.split(".", 1)
          func = cfg.get_expanded if expand else cfg.get
          return func(section, option)
docs: Returns the config value that corresponds to *name*, which must have the format
      ``<section>[.<option>]``. When an option is given and *expand* is *True*, variables are expanded
      in the returned value.