code: def outputs_alias_inputs(outputs, inputs):
      input_storages = {
          inp._typed_storage()._cdata
          for inp in tree_flatten_only(torch.Tensor, inputs)
          if torch._C._has_storage(inp)
      }
      return any(
          torch._C._has_storage(out)
          and out._typed_storage()._cdata in input_storages
          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 1 for calling a global function with example usage: outputs_alias_inputs(outputs, inputs) and returns: any