parameters: (obj)
return_statement: return isinstance(obj, Pattern)
docstring: Check if the object is a regex pattern instance.
  
      Parameters
      ----------
      obj : The object to check
  
      Returns
      -------
      is_regex : bool
          Whether `obj` is a regex pattern.
  
      Examples
      --------
      >>> is_re(re.compile(".*"))
      True
      >>> is_re("foo")
      False
docstring_summary: Check if the object is a regex pattern instance.
docstring_tokens: Check if the object is a regex pattern instance .
function: def is_re(obj) -> bool:
      """
      Check if the object is a regex pattern instance.
  
      Parameters
      ----------
      obj : The object to check
  
      Returns
      -------
      is_regex : bool
          Whether `obj` is a regex pattern.
  
      Examples
      --------
      >>> is_re(re.compile(".*"))
      True
      >>> is_re("foo")
      False
      """
      return isinstance(obj, Pattern)
function_tokens: def is_re ( obj ) -> bool : return isinstance ( obj , Pattern )