code: def reconstruct(
      image: type_alias.TensorLike,
      coeff_mul: type_alias.TensorLike,
      coeff_add: type_alias.TensorLike,
      name: str = "matting_reconstruct",
  ) -> tf.Tensor:
      """Reconstruct the matte from the image using the linear coefficients.
  
      Reconstruct the matte from the image using the linear coefficients (a, b)
      returned by the linear_coefficients function.
  
      Args:
        image: A tensor of shape `[B, H, W, C]` .
        coeff_mul: A tensor of shape `[B, H, W, C]` representing the multiplicative
          part of the linear coefficients.
        coeff_add: A tensor of shape `[B, H, W, 1]` representing the additive part
          of the linear coefficients.
        name: A name for this op. Defaults to "matting_reconstruct".
  
      Returns:
        A tensor of shape `[B, H, W, 1]` containing the mattes.
  
      Raises:
        ValueError: If `image`, `coeff_mul`, or `coeff_add` are not of rank 4. If
        the last dimension of `coeff_add` is not 1. If the batch dimensions of
        `image`, `coeff_mul`, and `coeff_add` do not match.
      """
      with tf.name_scope(name):
          image = tf.convert_to_tensor(value=image)
          coeff_mul = tf.convert_to_tensor(value=coeff_mul)
          coeff_add = tf.convert_to_tensor(value=coeff_add)
  
          shape.check_static(image, has_rank=4)
          shape.check_static(coeff_mul, has_rank=4)
          shape.check_static(
              coeff_add, has_rank=4, has_dim_equals=(-1, 1)
          )
          shape.compare_batch_dimensions(
              tensors=(image, coeff_mul),
              last_axes=-1,
              broadcast_compatible=False,
          )
          shape.compare_batch_dimensions(
              tensors=(image, coeff_add),
              last_axes=-2,
              broadcast_compatible=False,
          )
  
          return tfg_vector.dot(coeff_mul, image) + coeff_add
  
file_path: graphics/tensorflow_graphics/image/matting.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import List, Tuple, Union
  import numpy
  import tensorflow
  from tensorflow_graphics.math import vector
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import export_api
  from tensorflow_graphics.util import shape
  from tensorflow_graphics.util import type_alias
label_desc: Use image node_id 8 for calling a global function with example usage: reconstruct(image, coeff_mul, coeff_add, name) and returns: unknown