code: def run_pattern(pattern, config: RunConfig):
      to_run = []
      regex = re.compile(pattern)
      for name in _registry:
          if regex.search(name):
              to_run.append(name)
      if not to_run:
          raise ValueError(f"pattern {pattern!r} matched no benchmarks")
      run_list(to_run, config)
  
imports: import timeit
  import contextlib
  import hail
  import logging
  import os
  import re
  import shutil
  import signal
  from py4j.protocol import Py4JError
  from .resources import all_resources
label_desc: Use image node_id 13 for calling a global function with example usage: run_pattern(pattern, config) without return types