code: def get_attribute_from_config(config, section, attribute):
      
      section = config.get(section)
      if section:
          option = section.get(attribute)
          if option:
              return option
      raise ConfigurationError("Config file badly formed!\n"
                               "Failed to get attribute '{}' from section '{}'!"
                               .format(attribute, section))
docs: Try to parse an attribute of the config file.
  
      Args:
          config (defaultdict): A defaultdict.
          section (str): The section of the config file to get information from.
          attribute (str): The attribute of the section to fetch.
      Returns:
          str: The string corresponding to the section and attribute.
      Raises:
          ConfigurationError