code: def unproject(
      point_2d: type_alias.TensorLike,
      depth: type_alias.TensorLike,
      name: str = "orthographic_unproject",
  ) -> tf.Tensor:
      r"""Unprojects a 2d point in 3d.
  
      Unprojects a 2d point \\((x', y')\\) to a 3d point \\((x, y, z)\\) given its
      depth \\(z\\), with
  
      $$
      \begin{matrix}
      x = x', & y = y', & z = z.
      \end{matrix}
      $$
  
      Note:
        In the following, A1 to An are optional batch dimensions.
  
      Args:
        point_2d: A tensor of shape `[A1, ..., An, 2]`, where the last dimension
          represents a 2d point to unproject.
        depth: A tensor of shape `[A1, ..., An, 1]`, where the last dimension
          represents the depth of a 2d point.
        name: A name for this op that defaults to "orthographic_unproject".
  
      Returns:
        A tensor of shape `[A1, ..., An, 3]`, where the last dimension represents
        a 3d point.
  
      Raises:
        ValueError: If the shape of `point_2d`, `depth` is not supported.
      """
      with tf.name_scope(name):
          point_2d = tf.convert_to_tensor(value=point_2d)
          depth = tf.convert_to_tensor(value=depth)
  
          shape.check_static(
              tensor=point_2d,
              tensor_name="point_2d",
              has_dim_equals=(-1, 2),
          )
          shape.check_static(
              tensor=depth, tensor_name="depth", has_dim_equals=(-1, 1)
          )
          shape.compare_batch_dimensions(
              tensors=(point_2d, depth),
              tensor_names=("point_2d", "depth"),
              last_axes=-2,
              broadcast_compatible=False,
          )
  
          return tf.concat((point_2d, depth), axis=-1)
  
file_path: graphics/tensorflow_graphics/rendering/camera/orthographic.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  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 3 for calling a global function with example usage: unproject(point_2d, depth, name) and returns: tf