class_docstr: Simple scanner
  
  All method patterns are regular expression strings (not
  compiled expressions!)
class_docstr_tok: ["Simple","scanner","All","method","patterns","are","regular","expression","strings","(","not","compiled","expressions","!",")"]
docstr: Apply a pattern on the current position and check
  if it patches. Doesn't touch pos.
docstr_tok: ["Apply","a","pattern","on","the","current","position","and","check","if","it","patches",".","Does","n't","touch","pos","."]
code: def test(self, pattern):
      """Apply a pattern on the current position and check
      if it patches. Doesn't touch pos.
      """
      return self.check(pattern) is not None
  
file_path: wandb/wandb/vendor/pygments/scanner.py
imports: import re
label_desc: Use image node_id 4 for calling the Scanner obj's underlying member method code with example usage: obj.test(pattern) and returns: unknown