code: def test_warp_tensor_offset_x1y1(self, batch_size, device, dtype):
      channels, height, width = 3, 3, 5  # output shape
      pinhole_src, pinhole_dst = self._create_pinhole_pair(
          batch_size, device, dtype
      )
      pinhole_dst.tx += 1.0  # apply offset to tx
      pinhole_dst.ty += 1.0  # apply offset to ty
  
      # initialize depth to one
      depth_src = torch.ones(
          batch_size, 1, height, width, device=device, dtype=dtype
      )
  
      # create warper, initialize projection matrices and warp grid
      warper = kornia.geometry.depth.DepthWarper(
          pinhole_dst, height, width
      )
      warper.compute_projection_matrix(pinhole_src)
  
      # create patch to warp
      patch_dst = (
          torch.arange(
              float(height * width), device=device, dtype=dtype
          )
          .view(1, 1, height, width)
          .expand(batch_size, channels, -1, -1)
      )
  
      # warpd source patch by depth
      patch_src = warper(depth_src, patch_dst)
  
      # compare patches
      assert_close(
          patch_dst[..., 1:, 1:],
          patch_src[..., :2, :4],
          atol=1e-4,
          rtol=1e-4,
      )
  
file_path: kornia/test/geometry/test_depth_warper.py
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.geometry.conversions import normalize_pixel_coordinates
  from kornia.testing import assert_close
label_desc: Use image node_id 5 for calling the TestDepthWarper obj's underlying member method code with example usage: obj.test_warp_tensor_offset_x1y1(batch_size, device, dtype) without return types