code: def _frozen_context_complex_middle():
      assert frozen_context.current() == {}
  
      frozen_context.update({"a": 1, "b": 2})
      assert frozen_context.current() == {"a": 1, "b": 2}
      frozen_context.update({"c": 3})
      assert frozen_context.current() == {"a": 1, "b": 2, "c": 3}
  
      with frozen_context({"c": 4}):
          assert frozen_context.current() == {"a": 1, "b": 2, "c": 4}
          frozen_context.update({"d": 5})
          assert frozen_context.current() == {
              "a": 1,
              "b": 2,
              "c": 4,
              "d": 5,
          }
      assert frozen_context.current() == {"a": 1, "b": 2, "c": 3}
  
file_path: nni/test/ut/sdk/mutable/test_frozen.py
imports: import pytest
  from nni.mutable import *
label_desc: Use image node_id 3 for calling a global function with example usage: _frozen_context_complex_middle() without return types