code: def _crop(img: Tensor, cropping_shape: List[int]) -> Tensor:
      """Crop out the part of "valid" convolution area."""
      return pad(
          img,
          (
              -cropping_shape[4],
              -cropping_shape[5],
              -cropping_shape[2],
              -cropping_shape[3],
              -cropping_shape[0],
              -cropping_shape[1],
          ),
      )
  
file_path: kornia/kornia/metrics/ssim3d.py
imports: from typing import List
  from kornia.core import Module, Tensor, pad
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE
  from kornia.filters import filter3d, get_gaussian_kernel3d
  from kornia.filters.filter import _compute_padding
label_desc: Use image node_id 1 for calling a global function with example usage: _crop(img, cropping_shape) and returns: pad