code: def get_cell_html(soup):
      # Returns string of td element with opening and closing <td> tags removed
      # Cannot use find_all as it only finds element tags and does not find text which
      # is not inside an element
      return " ".join([str(i) for i in soup.contents])
  
imports: import re
  import docx
  from docx import Document
  from bs4 import BeautifulSoup
  from html.parser import HTMLParser
label_desc: Use image node_id 4 for calling a global function with example usage: get_cell_html(soup) and returns: str