class_docstr: The :class:`RegexPattern` class is an implementation of a pattern
  using regular expressions.
docstr: Matches this pattern against the specified files.
  
  *files* (:class:`~collections.abc.Iterable` of :class:`str`)
  contains each file relative to the root directory (e.g., "relative/path/to/file").
  
  Returns an :class:`~collections.abc.Iterable` yielding each matched
  file path (:class:`str`).
code: def match(self, files):
      """
      Matches this pattern against the specified files.
  
      *files* (:class:`~collections.abc.Iterable` of :class:`str`)
      contains each file relative to the root directory (e.g., "relative/path/to/file").
  
      Returns an :class:`~collections.abc.Iterable` yielding each matched
      file path (:class:`str`).
      """
      if self.include is not None:
          for path in files:
              if self.regex.match(path) is not None:
                  yield path
  
file_path: ray/python/ray/_private/thirdparty/pathspec/pattern.py
imports: import re
  from .compat import unicode
label_desc: Use image node_id 3 for calling the RegexPattern obj's underlying member method code with example usage: obj.match(files) without return types