code: def test_frozen_context_complex():
      assert frozen_context.current() is None
      with frozen_context():
          _frozen_context_complex_middle()
      assert frozen_context.current() is None
  
      with frozen_context("anything"):
          with pytest.raises(TypeError, match="dict"):
              frozen_context.current()
  
file_path: nni/test/ut/sdk/mutable/test_frozen.py
imports: import pytest
  from nni.mutable import *
label_desc: Use image node_id 4 for calling a global function with example usage: test_frozen_context_complex() without return types