code: def check_log_file(log_file: str, expected_regex: list):
      with open(log_file, "r") as f:
          s = f.read()
          for regex in expected_regex:
              assert re.findall(regex, s) != []
  
imports: import io
  import json
  import logging
  import os
  import re
  import string
  import sys
  import time
  from contextlib import redirect_stderr
  import pytest
  import requests
  import starlette
  import ray
  import ray.util.state
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.serve._private.common import ServeComponentType
  from ray.serve._private.constants import SERVE_LOG_EXTRA_FIELDS
  from ray.serve._private.logging_utils import ServeJSONFormatter, get_component_log_file_name, get_serve_logs_dir
label_desc: Use image node_id 11 for calling a global function with example usage: check_log_file(log_file, expected_regex) without return types