class_docstr: 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`.
code: def pattern_to_regex(cls, pattern):
      """
      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: ray/python/ray/_private/thirdparty/pathspec/pattern.py
imports: import re
  from .compat import unicode
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