code: def check_run(self, run):
      log.info("checking run %s output for %r", run.id, self.pattern)
      output_path = run.guild_path("output")
      out = _read(output_path)
      if not self.pattern_re.search(out):
          raise Failed(
              f"could not find pattern {self.pattern!r} in run {run.id} output"
          )
  
imports: import difflib
  import glob
  import logging
  import os
  import re
  from guild import util
label_desc: Use image node_id 2 for calling the OutputCheck obj's underlying member method code with example usage: obj.check_run(run) without return types