code: def frozen_modules(enabled=True):
      """Force frozen modules to be used (or not).
  
      This only applies to modules that haven't been imported yet.
      Also, some essential modules will always be imported frozen.
      """
      _imp._override_frozen_modules_for_tests(1 if enabled else -1)
      try:
          yield
      finally:
          _imp._override_frozen_modules_for_tests(0)
  
imports: import contextlib
  import _imp
  import importlib
  import importlib.util
  import os
  import shutil
  import sys
  import unittest
  import warnings
  from .os_helper import unlink, temp_dir
label_desc: Use image node_id 7 for calling a global function with example usage: frozen_modules(enabled) without return types