code: def test_crop_by_boxes_no_resizing(self, device, dtype):
      inp = torch.arange(0.0, 343.0, device=device, dtype=dtype).view(
          1, 1, 7, 7, 7
      )
      src_box = torch.tensor(
          [
              [
                  [1.0, 1.0, 1.0],
                  [3.0, 1.0, 1.0],
                  [3.0, 3.0, 1.0],
                  [1.0, 3.0, 1.0],
                  [1.0, 1.0, 2.0],
                  [3.0, 1.0, 2.0],
                  [3.0, 3.0, 2.0],
                  [1.0, 3.0, 2.0],
              ]
          ],
          device=device,
          dtype=dtype,
      )  # 1x8x3
      dst_box = torch.tensor(
          [
              [
                  [0.0, 0.0, 0.0],
                  [2.0, 0.0, 0.0],
                  [2.0, 2.0, 0.0],
                  [0.0, 2.0, 0.0],
                  [0.0, 0.0, 1.0],
                  [2.0, 0.0, 1.0],
                  [2.0, 2.0, 1.0],
                  [0.0, 2.0, 1.0],
              ]
          ],
          device=device,
          dtype=dtype,
      )  # 1x8x3
  
      expected = inp[:, :, 1:3, 1:4, 1:4]
  
      patches = kornia.geometry.transform.crop_by_boxes3d(
          inp, src_box, dst_box, align_corners=True
      )
      assert_close(patches, expected, rtol=1e-4, atol=1e-4)
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.testing import assert_close
  from kornia.utils._compat import torch_version
label_desc: Use image node_id 1 for calling the TestCropByBoxes3D obj's underlying member method code with example usage: obj.test_crop_by_boxes_no_resizing(device, dtype) without return types