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 if statements
docstr_tok: ["Test","if","statements"]
code: def test_if_statement(self):
      """Test if statements"""
      CODE_IF_STATEMENT = """
  a = 1
  if True:
      a
      if False:
          a
      elif False:
          a
      else:
          a
  else:
      a
  """
      self._testCode(CODE_IF_STATEMENT, 5)
  
imports: import ast
  import unittest
  import streamlit.runtime.scriptrunner.magic
  from tests.testutil import patch_config_options
label_desc: Use image node_id 3 for calling the MagicTest obj's underlying member method code with example usage: obj.test_if_statement() without return types