code: def test_escape(self):
      self.assertEqual(
          html.escape("'<script>\"&foo;\"</script>'"),
          "&#x27;&lt;script&gt;&quot;&amp;foo;&quot;&lt;/script&gt;&#x27;",
      )
      self.assertEqual(
          html.escape("'<script>\"&foo;\"</script>'", False),
          "'&lt;script&gt;\"&amp;foo;\"&lt;/script&gt;'",
      )
  
imports: import html
  import unittest
label_desc: Use image node_id 1 for calling the HtmlTests obj's underlying member method code with example usage: obj.test_escape() without return types