code: def get_provenance(x) -> frozenset:
      """
      Reads the provenance of a recursive datastructure possibly containing
      :class:`torch.Tensor` s.
  
      :param torch.Tensor tensor: An input tensor.
      :returns: A provenance frozenset.
      :rtype: frozenset
      """
      _, provenance = extract_provenance(x)
      return provenance
  
file_path: pyro/pyro/ops/provenance.py
imports: from functools import partial, singledispatch
  from typing import Tuple
  import torch
  from torch.utils._pytree import tree_flatten, tree_map, tree_unflatten
label_desc: Use image node_id 9 for calling a global function with example usage: get_provenance(x) and returns: provenance