code: def get_box_kernel2d(
      kernel_size: tuple[int, int] | int,
      *,
      device: Optional[Device] = None,
      dtype: Optional[Dtype] = None,
  ) -> Tensor:
      r"""Utility function that returns a 2-D box filter.
  
      Args:
          kernel_size: the size of the kernel.
          device: the desired device of returned tensor.
          dtype: the desired data type of returned tensor.
      Returns:
          A tensor with shape :math:`(1, \text{kernel\_size}[0], \text{kernel\_size}[1])`,
          filled with the value :math:`\frac{1}{\text{kernel\_size}[0] \times \text{kernel\_size}[1]}`.
      """
      ky, kx = _unpack_2d_ks(kernel_size)
      scale = tensor(1.0 / (kx * ky), device=device, dtype=dtype)
      return scale.expand(1, ky, kx)
  
imports: from __future__ import annotations
  import math
  from math import sqrt
  from typing import Any, Optional
  import torch
  from kornia.core import Device, Dtype, Tensor, concatenate, cos, stack, tensor, where, zeros, zeros_like
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE
  from kornia.utils import deprecated
label_desc: Use image node_id 13 for calling a global function with example usage: get_box_kernel2d(kernel_size) and returns: scale