code: def _composite_tensor_to_variants_grad(op, grad):
      return (
          gen_composite_tensor_ops.CompositeTensorVariantToComponents(
              encoded=grad,
              metadata=op.get_attr("metadata"),
              Tcomponents=op.get_attr("Tcomponents"),
          )
      )
  
file_path: tensorflow-upstream/tensorflow/python/ops/composite_tensor_ops.py
imports: from tensorflow.core.protobuf import composite_tensor_variant_pb2
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import gen_composite_tensor_ops
  from tensorflow.python.saved_model import nested_structure_coder
  from tensorflow.python.util import nest
label_desc: Use image node_id 3 for calling a global function with example usage: _composite_tensor_to_variants_grad(op, grad) and returns: gen_composite_tensor_ops