from typing import Dict
from typing import Union


def is_two_part(joke: Dict[str, Union[str, bool]]):
    """Checks whether a joke is two part or not

    Parameters
    ----------
    joke : Dict[str, Union[str, bool]]
        The joke dictionary return by the joke() function

    Returns
    -------
    bool
        True if the joke is two part else False
    """
    return joke["twopart"]