class_docstr: Typed namedtuple with utility functions for regexp ignore rules.
docstr: Match a list of ignore rules against the supplied path.
code: def match(path: Path, rules: list[_IgnoreRule]) -> bool:
      """Match a list of ignore rules against the supplied path."""
      for rule in rules:
          if not isinstance(rule, _RegexpIgnoreRule):
              raise ValueError(
                  f"_RegexpIgnoreRule cannot match rules of type: {type(rule)}"
              )
          if (
              rule.pattern.search(str(path.relative_to(rule.base_dir)))
              is not None
          ):
              return True
      return False
  
imports: from __future__ import annotations
  import ast
  import logging
  import os
  import zipfile
  from io import TextIOWrapper
  from pathlib import Path
  from typing import Generator, NamedTuple, Pattern, Protocol, overload
  import re2
  from pathspec.patterns import GitWildMatchPattern
  from airflow.configuration import conf
  from airflow.exceptions import RemovedInAirflow3Warning
label_desc: Use image node_id 2 for calling the _RegexpIgnoreRule obj's underlying member method code with example usage: obj.match(path, rules) and returns: False, True