code: def _match_output_lines(output_lines, regexs):
      # Matches regular expressions `regexs` against `output_lines` and finds the
      # consecutive matching lines from `output_lines`.
      # `None` is returned if no match is found.
      if len(output_lines) < len(regexs):
          return None
  
      matches = [None] * len(regexs)
      for i in range(len(output_lines) - len(regexs)):
          for j in range(len(regexs)):
              m = re.match(regexs[j], output_lines[i + j])
              if not m:
                  break
              matches[j] = m
          else:
              # Match found
              return matches
  
      # No match
      return None
  
imports: import contextlib
  import os
  import re
  import shlex
  import shutil
  import subprocess
  import sys
  import tempfile
  from typing import List, Set
  import cupy_builder
  import cupy_builder.install_utils
  from cupy_builder import _environment
  from cupy_builder._context import Context
label_desc: Use image node_id 7 for calling a global function with example usage: _match_output_lines(output_lines, regexs) and returns: None, None, matches