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 for statements
docstr_tok: ["Test","for","statements"]
code: def test_for_statement(self):
      """Test for statements"""
      CODE_FOR_STATEMENT = """
  a = 1
  for i in range(10):
      for j in range(2):
          a
  
  """
      self._testCode(CODE_FOR_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 4 for calling the MagicTest obj's underlying member method code with example usage: obj.test_for_statement() without return types