def get_pieces(column1) -> dict:
    """

    Args:
        column1 (object): beautifulSoup object for column 1 of wikitable row.
    Returns:
        get_pieces (dict) = {text1:HTML1, text2:HTML2, ...}
                If column1 has no commas, then get_pieces = {text1:HTML1}, where
            HTML1 is the HTML for column1, including <th> tags, and text1 is
            the text of HTML1.
                If column1 contains a comma-separated list of items, then the
            HTML for column1 is converted into a list of items HTML1, HTML2,
            etc., where each HTML item is the equivalent HTML for each list
            item, including <th> tags, and text1, text2, etc., are the text for
            HTML1, HTML2, etc.
    Raises:
        none.
    """
    column1_text = column1.get_text().split(',')
    if len(column1_text) == 1:
        return {column1_text[0].strip(): str(column1)}
    else:
        tag = '<th'
        for key, value in column1.attrs.items():
            if isinstance(value, list):
                tag += ' ' + key + '="' + value[0] + '"'
            else:
                tag += ' ' + key + '="' + value + '"'
        tag += '>'
        column1_html = list()
        for item in column1.contents[0::2]:
            column1_html.append(tag + str(item) + '</th>')
        return {text.strip(): html
                for text, html in zip(column1_text, column1_html)}