code: def get_box_kernel1d(
      kernel_size: int,
      *,
      device: Optional[Device] = None,
      dtype: Optional[Dtype] = None,
  ) -> Tensor:
      r"""Utility function that returns a 1-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})`, filled with the value
          :math:`\frac{1}{\text{kernel\_size}}`.
      """
      scale = tensor(1.0 / kernel_size, device=device, dtype=dtype)
      return scale.expand(1, kernel_size)
  
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 12 for calling a global function with example usage: get_box_kernel1d(kernel_size) and returns: scale