code: def get_sobel_kernel2d_2nd_order(
      *, device: Optional[Device] = None, dtype: Optional[Dtype] = None
  ) -> Tensor:
      gxx = get_sobel_kernel_5x5_2nd_order(device=device, dtype=dtype)
      gyy = gxx.transpose(0, 1)
      gxy = _get_sobel_kernel_5x5_2nd_order_xy(
          device=device, dtype=dtype
      )
      return stack([gxx, gxy, gyy])
  
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 23 for calling a global function with example usage: get_sobel_kernel2d_2nd_order() and returns: stack