def get_with_default(install_config, parameter_name, default_value):
    """
    :param install_config: A dict represents the install section inside the configuration file
    :param parameter_name: Specific key inside the install section
    :param default_value: Default value in cases that the key cannot be found
    :return: The value of the key in the configuration file or default value if key cannot be found
    """
    return install_config[parameter_name] if install_config and parameter_name in install_config else default_value