code: def assert_multiline_regex_search(
      pattern: str,
      string: str,
      from_name: str = "Expected",
      to_name: str = "Actual",
  ) -> None:
      """Check that `pattern` (which can be a regex expression)
      matches the corresponding lines of `string` string.
      In case the regex match fails, we display the diff as if `pattern` was a regular string.
      """
      pattern = normalize_newlines(pattern)
      string = normalize_newlines(string)
      if re.search(pattern, string, flags=re.MULTILINE) is None:
          print("\n-------- PATTERN: -----------")
          print(pattern)
          print("---------- STRING: ------------")
          print(string)
          print("-------------------------------")
          assert False, "Regex pattern did not match"
  
imports: import copy
  import logging
  import os
  import re
  import shutil
  import string
  import subprocess
  import sys
  import tempfile
  from contextlib import contextmanager
  from difflib import unified_diff
  from pathlib import Path
  from subprocess import PIPE, Popen
  from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
  from omegaconf import Container, DictConfig, OmegaConf
  from hydra._internal.hydra import Hydra
  from hydra._internal.utils import detect_task_name
  from hydra.core.global_hydra import GlobalHydra
  from hydra.core.utils import JobReturn, validate_config_path
  from hydra.types import TaskFunction
label_desc: Use image node_id 15 for calling a global function with example usage: assert_multiline_regex_search(pattern, string, from_name, to_name) without return types