code: def _read_config(cfg_file):
      
      config = ConfigParser()
      # maintain case of options
      config.optionxform = lambda option: option
      if not os.path.exists(cfg_file):
          # Create an empty config
          config.add_section(_MAIN_SECTION_NAME)
          config.add_section(_ENVIRONMENT_SECTION_NAME)
      else:
          config.read(cfg_file)
      return config
docs: Return a ConfigParser object populated from the settings.cfg file.
  
      :return: A Config Parser object.