class_docstr: Test for Magic
  The test counts the number of substitutions that magic.add_code do for
  a few code snippets. The test passes if the expected number of
  substitutions have been made.
class_docstr_tok: ["Test","for","Magic","The","test","counts","the","number","of","substitutions","that","magic.add_code","do","for","a","few","code","snippets",".","The","test","passes","if","the","expected","number","of","substitutions","have","been","made","."]
docstr: Test 'with' statements
docstr_tok: ["Test","'with","'","statements"]
code: def test_with_statement(self):
      """Test 'with' statements"""
      CODE_WITH_STATEMENT = """
  a = 10
  with None:
      a
  """
      self._testCode(CODE_WITH_STATEMENT, 1)
  
imports: import ast
  import unittest
  import streamlit.runtime.scriptrunner.magic
  from tests.testutil import patch_config_options
label_desc: Use image node_id 7 for calling the MagicTest obj's underlying member method code with example usage: obj.test_with_statement() without return types