def _get_text_recursively(text_entry) -> str:
    """
    Get the text given a arbitrary object

    Parameters
    ----------
    text_entry : any
        A arbitrary object that contains some text

    Returns
    -------
    str
        The extracted text
    """
    if text_entry is None:
        return ''
    if type(text_entry) == str:
        return text_entry
    else:
        text = []
        items = text_entry if type(text_entry) == list else [x for k, x in text_entry.items()]
        for item in items:
            text.append(_get_text_recursively(item))
        return ' '.join(text)