from typing import Tuple
from typing import Dict
from typing import Any


def build_single_text_output(**kwargs) -> Tuple[Dict[str, Any], str]:
    """
    creates output with the dictionary returned from the request and the text attached to it
    Args:
        **kwargs:
                handled_result (Dict): response received from Qualys API
    Returns:
            Tuple containing a dictionary and the text returned in the response
    """
    output = kwargs['handled_result']
    readable_output = output['TEXT']
    return output, readable_output