docstr: Returns array containing only the highest level tables
  Operates on the assumption that bs4 returns child elements immediately after
  the parent element in `find_all`. If this changes in the future, this method will need to be updated
  :return:
docstr_tok: ["Returns","array","containing","only","the","highest","level","tables","Operates","on","the","assumption","that","bs4","returns","child","elements","immediately","after","the","parent","element","in","`","find_all","`",".","If","this","changes","in","the","future",",","this","method","will","need","to","be","updated",":","return",":"]
code: def ignore_nested_tables(self, tables_soup):
      """
      Returns array containing only the highest level tables
      Operates on the assumption that bs4 returns child elements immediately after
      the parent element in `find_all`. If this changes in the future, this method will need to be updated
      :return:
      """
      new_tables = []
      nest = 0
      for table in tables_soup:
          if nest:
              nest -= 1
              continue
          new_tables.append(table)
          nest = len(table.find_all("table"))
      return new_tables
  
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 the HtmlToDocx obj's underlying member method code with example usage: obj.ignore_nested_tables(tables_soup) and returns: new_tables