code: def test_if_branching_stores_undefined():
      tmpl = nodes.Template(
          [
              nodes.Assign(
                  nodes.Name("variable", "store"), nodes.Const(23)
              ),
              nodes.If(
                  nodes.Name("expression", "load"),
                  [
                      nodes.Assign(
                          nodes.Name("variable", "store"),
                          nodes.Const(42),
                      )
                  ],
                  [],
                  [],
              ),
          ]
      )
  
      sym = symbols_for_node(tmpl)
      assert sym.refs == {
          "variable": "l_0_variable",
          "expression": "l_0_expression",
      }
      assert sym.stores == {"variable"}
      assert sym.loads == {
          "l_0_variable": ("undefined", None),
          "l_0_expression": ("resolve", "expression"),
      }
      assert sym.dump_stores() == {
          "variable": "l_0_variable",
      }
  
imports: from jinja2 import nodes
  from jinja2.idtracking import symbols_for_node
label_desc: Use image node_id 4 for calling a global function with example usage: test_if_branching_stores_undefined() without return types