class_docstr: CompositeTensorGradient for WeakTensor.
code: def get_gradient_components(self, weak_tensor):
      return weak_tensor.tensor
  
imports: from typing import Optional
  import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import composite_tensor_gradient
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import extension_type
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_conversion_registry
  from tensorflow.python.types import core
label_desc: Use image node_id 1 for calling the WeakTensorGradient obj's underlying member method code with example usage: obj.get_gradient_components(weak_tensor) and returns: weak_tensor