code: def depth_from_disparity(
      disparity: Tensor, baseline: float | Tensor, focal: float | Tensor
  ) -> Tensor:
      """Computes depth from disparity.
  
      Args:
          disparity: Disparity tensor of shape :math:`(*, H, W)`.
          baseline: float/tensor containing the distance between the two lenses.
          focal: float/tensor containing the focal length.
  
      Return:
          Depth map of the shape :math:`(*, H, W)`.
  
      Example:
          >>> disparity = torch.rand(4, 1, 4, 4)
          >>> baseline = torch.rand(1)
          >>> focal = torch.rand(1)
          >>> depth_from_disparity(disparity, baseline, focal).shape
          torch.Size([4, 1, 4, 4])
      """
      KORNIA_CHECK_IS_TENSOR(
          disparity,
          f"Input disparity type is not a Tensor. Got {type(disparity)}.",
      )
      KORNIA_CHECK_SHAPE(disparity, ["*", "H", "W"])
      KORNIA_CHECK(
          isinstance(baseline, (float, Tensor)),
          f"Input baseline should be either a float or Tensor. Got {type(baseline)}",
      )
      KORNIA_CHECK(
          isinstance(focal, (float, Tensor)),
          f"Input focal should be either a float or Tensor. Got {type(focal)}",
      )
  
      if isinstance(baseline, Tensor):
          KORNIA_CHECK_SHAPE(baseline, ["1"])
  
      if isinstance(focal, Tensor):
          KORNIA_CHECK_SHAPE(focal, ["1"])
  
      return baseline * focal / (disparity + 1e-8)
  
imports: from __future__ import annotations
  from typing import Optional
  import torch
  import kornia.core
  from kornia.core import Module, Tensor, tensor
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE
  from kornia.filters.sobel import spatial_gradient
  from kornia.utils import create_meshgrid
  from kornia.utils.helpers import deprecated
  from .camera import PinholeCamera, cam2pixel, pixel2cam, project_points, unproject_points
  from .conversions import normalize_pixel_coordinates, normalize_points_with_intrinsics
  from .linalg import compose_transformations, convert_points_to_homogeneous, inverse_transformation, transform_points
label_desc: Use image node_id 7 for calling a global function with example usage: depth_from_disparity(disparity, baseline, focal) and returns: unknown