class_docstr: Test TOC Extension. 
class_docstr_tok: ["Test","TOC","Extension","."]
code: def testTocInHeaders(self):
      text = "[TOC]\n#[TOC]"
      self.assertEqual(
          self.md.convert(text),
          '<div class="toc">\n'  # noqa
          "<ul>\n"  # noqa
          '<li><a href="#toc">[TOC]</a></li>\n'  # noqa
          "</ul>\n"  # noqa
          "</div>\n"  # noqa
          '<h1 id="toc">[TOC]</h1>',  # noqa
      )
  
      text = "#[TOC]\n[TOC]"
      self.assertEqual(
          self.md.convert(text),
          '<h1 id="toc">[TOC]</h1>\n'  # noqa
          '<div class="toc">\n'  # noqa
          "<ul>\n"  # noqa
          '<li><a href="#toc">[TOC]</a></li>\n'  # noqa
          "</ul>\n"  # noqa
          "</div>",  # noqa
      )
  
      text = "[TOC]\n# *[TOC]*"
      self.assertEqual(
          self.md.convert(text),
          '<div class="toc">\n'  # noqa
          "<ul>\n"  # noqa
          '<li><a href="#toc">[TOC]</a></li>\n'  # noqa
          "</ul>\n"  # noqa
          "</div>\n"  # noqa
          '<h1 id="toc"><em>[TOC]</em></h1>',  # noqa
      )
  
imports: import unittest
  import markdown
label_desc: Use image node_id 16 for calling the TestTOC obj's underlying member method code with example usage: obj.testTocInHeaders() without return types