code: def _augment_message(
      exception: BaseException, pattern: str, new_message: str
  ) -> None:
      exception.args = tuple(
          new_message
          if isinstance(arg, str) and re.match(pattern, arg, re.DOTALL)
          else arg
          for arg in exception.args
      )
  
imports: import re
  from lightning.fabric.utilities.exceptions import MisconfigurationException
label_desc: Use image node_id 1 for calling a global function with example usage: _augment_message(exception, pattern, new_message) without return types