code: def _extract_graph_module_outputs(
      graph_module: torch.fx.GraphModule,
  ) -> Any:
      """Collect "val" fields from outputs metadata in this torch.fx.GraphModule."""
      for node in graph_module.graph.nodes:
          if node.op == "output":
              # Output node is unique. Let's retrieve output values from
              # this node's input list. And then just return.
              return node.args[0]
      raise ValueError(
          "No output node found in this torch.fx.GraphModule."
      )
  
imports: import dataclasses
  import importlib
  import logging
  from typing import Any, Dict, Final, List, Mapping, Optional, Sequence, Set, Tuple, Union
  from typing_extensions import TypeAlias
  import torch
  import torch._C
  import torch._ops
  import torch._prims.executor
  import torch.fx
  from torch._subclasses.fake_tensor import FakeTensor
  from torch.fx._compatibility import compatibility
  from torch.fx.passes.fake_tensor_prop import FakeTensorProp
  from torch.fx.passes.operator_support import OperatorSupport
  from torch.fx.passes.tools_common import CALLABLE_NODE_OPS
  from torch.utils import _pytree
label_desc: Use image node_id 9 for calling a global function with example usage: _extract_graph_module_outputs(graph_module) and returns: node