class_docstr: Adapt a package spec to adapt the underlying loader.
class_docstr_tok: ["Adapt","a","package","spec","to","adapt","the","underlying","loader","."]
code: def __init__(self, spec, adapter=lambda spec: spec.loader):
      self.spec = spec
      self.loader = adapter(spec)
  
file_path: cpython/Lib/importlib/resources/_adapters.py
imports: from contextlib import suppress
  from io import TextIOWrapper
  from .None import abc
label_desc: Use image node_id 1 to create a new SpecLoaderAdapter object  with example: obj = SpecLoaderAdapter(spec, adapter)