def extractConfigKey(config : dict, key):
    """
    Extracts the value of the key from a dictionary if the key exists
    :param config: The configuration dictionary
    :param key:
    :return: Value of the dictionary if the key exists, else None
    """
    assert isinstance(config, dict), "ValueError: config should be a dictionary object!"
    if key in config.keys():
        return config[key]
    else:
        return None