code: def __init__(self, exception_cls, regex):
      self.exception_cls = exception_cls
      self.regex = regex
  
file_path: pytorch/torch/testing/_internal/optests/aot_autograd.py
imports: import torch
  import torch.utils._pytree
  from torch.testing._internal.common_methods_invocations import wrapper_set_seed
  from functorch.compile import compiled_function, min_cut_rematerialization_partition, nop
  from .make_fx import randomize
  import re
label_desc: Use image node_id 1 to create a new assert_raises_regex object  with example: obj = assert_raises_regex(exception_cls, regex)