code: def compile_regex_list(name: str, exps: str) -> list[re.Pattern[str]]:
      lst = []
      for exp in exps:
          try:
              lst.append(re.compile(exp))
          except Exception:
              logger.warning(__("invalid regex %r in %s"), exp, name)
      return lst
  
imports: from __future__ import annotations
  import glob
  import inspect
  import pickle
  import re
  import sys
  from importlib import import_module
  from os import path
  from typing import IO, TYPE_CHECKING, Any, TextIO
  import sphinx
  from sphinx.builders import Builder
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.console import red
  from sphinx.util.inspect import safe_getattr
label_desc: Use image node_id 2 for calling a global function with example usage: compile_regex_list(name, exps) and returns: lst