code: def outputs_are_inputs(outputs, inputs):
      input_ids = {
          id(inp) for inp in tree_flatten_only(torch.Tensor, inputs)
      }
      return any(
          id(out) in input_ids
          for out in tree_flatten_only(torch.Tensor, outputs)
      )
  
file_path: pytorch/torch/_subclasses/fake_utils.py
imports: import functools
  import warnings
  from typing import Callable, Union
  import torch
  import torch.utils._pytree
  from torch._ops import OpOverload
  from torch._subclasses.fake_tensor import FakeTensorMode, tree_flatten_only, UnsupportedFakeTensorException
  from torch.utils._python_dispatch import TorchDispatchMode
label_desc: Use image node_id 2 for calling a global function with example usage: outputs_are_inputs(outputs, inputs) and returns: any