class_docstr: The :class:`Pattern` class is the abstract definition of a pattern.
class_docstr_tok: ["The",":","class",":","`","Pattern","`","class","is","the","abstract","definition","of","a","pattern","."]
docstr: Matches this pattern against the specified file.
  
  *file* (:class:`str`) is the normalized file path to match against.
  
  Returns the match result if *file* matched; otherwise, :data:`None`.
docstr_tok: ["Matches","this","pattern","against","the","specified","file",".","*","file","*","(",":","class",":","`","str","`",")","is","the","normalized","file","path","to","match","against",".","Returns","the","match","result","if","*","file","*","matched",";","otherwise",",",":","data",":","`","None","`","."]
code: def match_file(self, file: str) -> Optional[Any]:
      """
      Matches this pattern against the specified file.
  
      *file* (:class:`str`) is the normalized file path to match against.
  
      Returns the match result if *file* matched; otherwise, :data:`None`.
      """
      raise NotImplementedError(
          (
              "{cls.__module__}.{cls.__qualname__} must override match_file()."
          ).format(cls=self.__class__)
      )
  
file_path: catboost/contrib/python/pathspec/pathspec/pattern.py
imports: import dataclasses
  import re
  import warnings
  from typing import Any, AnyStr, Iterable, Iterator, Match, Optional, Pattern, Tuple, Union
label_desc: Use image node_id 3 for calling the Pattern obj's underlying member method code with example usage: obj.match_file(file) without return types