class_docstr: The :class:`RegexPattern` class is an implementation of a pattern using
  regular expressions.
class_docstr_tok: ["The",":","class",":","`","RegexPattern","`","class","is","an","implementation","of","a","pattern","using","regular","expressions","."]
docstr: Convert the pattern into an uncompiled regular expression.
  
  *pattern* (:class:`str`) is the pattern to convert into a regular
  expression.
  
  Returns the uncompiled regular expression (:class:`str` or :data:`None`),
  and whether matched files should be included (:data:`True`), excluded
  (:data:`False`), or is a null-operation (:data:`None`).
  
          .. NOTE:: The default implementation simply returns *pattern* and
             :data:`True`.
docstr_tok: ["Convert","the","pattern","into","an","uncompiled","regular","expression",".","*","pattern","*","(",":","class",":","`","str","`",")","is","the","pattern","to","convert","into","a","regular","expression",".","Returns","the","uncompiled","regular","expression","(",":","class",":","`","str","`","or",":","data",":","`","None","`",")",",","and","whether","matched","files","should","be","included","(",":","data",":","`","True","`",")",",","excluded","(",":","data",":","`","False","`",")",",","or","is","a","null-operation","(",":","data",":","`","None","`",")",".","..","NOTE",":",":","The","default","implementation","simply","returns","*","pattern","*","and",":","data",":","`","True","`","."]
code: def pattern_to_regex(cls, pattern: str) -> Tuple[str, bool]:
      """
      Convert the pattern into an uncompiled regular expression.
  
      *pattern* (:class:`str`) is the pattern to convert into a regular
      expression.
  
      Returns the uncompiled regular expression (:class:`str` or :data:`None`),
      and whether matched files should be included (:data:`True`), excluded
      (:data:`False`), or is a null-operation (:data:`None`).
  
              .. NOTE:: The default implementation simply returns *pattern* and
                 :data:`True`.
      """
      return pattern, True
  
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 4 for calling the RegexPattern obj's underlying member method code with example usage: obj.pattern_to_regex(cls, pattern) and returns: pattern,  True