code: def test_frozen_factory():
      func = frozen_factory(_func_with_ensure_frozen, {"a": 1, "b": 2})
      assert (
          func(Numerical(0, 2, label="a"), Numerical(0, 2, label="b"))
          == 3
      )
  
file_path: nni/test/ut/sdk/mutable/test_frozen.py
imports: import pytest
  from nni.mutable import *
label_desc: Use image node_id 7 for calling a global function with example usage: test_frozen_factory() without return types