class_docstr: Adapts a matcher function to a locals mapping as required by eval().
code: def __init__(self, matcher: Callable[[str], bool]) -> None:
      self.matcher = matcher
  
imports: import ast
  import dataclasses
  import enum
  import re
  import types
  from typing import Callable
  from typing import Iterator
  from typing import Mapping
  from typing import NoReturn
  from typing import Optional
  from typing import Sequence
label_desc: Use image node_id 1 to create a new MatcherAdapter object from inherited base classes: Mapping with example: obj = MatcherAdapter(matcher)