def expandToDictionary(data, key: str):
    """
    This function expand a non dictionary variable in to a dictionary with a key
    Eg. a = value -> {"key": value}
    """
    if not isinstance(data, dict):
        return {key: data}
    else:
        return data