code: def __match_count_is(lines, pattern, expected):
      count = 0
      for x in lines:
          if re.search(pattern, x):
              count += 1
          if count > expected:
              return False
      return count == expected
  
imports: import BoostBuild
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: __match_count_is(lines, pattern, expected) and returns: unknown, False