code: def _copy_tensor_value(  # pylint: disable=invalid-name
      element: Dict[str, Dict[str, Any]],
      old_graph: str,
      old_tensor_name: str,
      new_graph: str,
      new_tensor_name: str,
  ) -> Dict[str, Dict[str, Any]]:
      element = copy.deepcopy(element)
      if new_graph not in element:
          element[new_graph] = {}
      element[new_graph][new_tensor_name] = element[old_graph][
          old_tensor_name
      ]
      return element
  
file_path: tfx/tfx/experimental/distributed_inference/graphdef_experiments/subgraph_partitioning/beam_pipeline.py
imports: import copy
  from typing import Any, Dict, Iterator, List, Mapping
  import apache_beam
  import tensorflow
  from tfx.experimental.distributed_inference.graphdef_experiments.subgraph_partitioning import execution_spec
label_desc: Use image node_id 4 for calling a global function with example usage: _copy_tensor_value(element, old_graph, old_tensor_name, new_graph, new_tensor_name) and returns: element