class_docstr: Test finding frozen modules.
class_docstr_tok: ["Test","finding","frozen","modules","."]
code: def check_loader_state(self, spec, origname=None, filename=None):
      if not filename:
          if not origname:
              origname = spec.name
          filename = resolve_stdlib_file(origname)
  
      actual = dict(vars(spec.loader_state))
  
      # Check the rest of spec.loader_state.
      expected = dict(
          origname=origname,
          filename=filename if origname else None,
      )
      self.assertDictEqual(actual, expected)
  
file_path: cpython/Lib/test/test_importlib/frozen/test_finder.py
imports: from test.test_importlib import abc, util
  import os.path
  import unittest
  from test.support import import_helper, REPO_ROOT, STDLIB_DIR
label_desc: Use image node_id 3 for calling the FindSpecTests obj's underlying member method code with example usage: obj.check_loader_state(spec, origname, filename) without return types