code: def format_guard_bug_msg(aot_config, expected):
      return (
          f"At compilation time, graph {aot_config.aot_id} was compiled under the "
          f"assumption that {expected}, but at runtime this was not the case.  "
          "This indicates a guard bug in AOTAutograd or Dynamo, please file a bug to PyTorch."
      )
  
file_path: pytorch/torch/_functorch/_aot_autograd/logging_utils.py
imports: import collections
  from contextlib import contextmanager
  from typing import List, Tuple
  import torch
  import torch.fx.traceback
label_desc: Use image node_id 7 for calling a global function with example usage: format_guard_bug_msg(aot_config, expected) and returns: str, aot_config, str, expected, str