class_docstr: Helper class for KeyNet, it defines the handcrafted filters within the Key.Net handcrafted block.
code: def __init__(self) -> None:
      super().__init__()
      self.spatial_gradient = SpatialGradient("sobel", 1)
  
imports: from typing import List, Optional
  import torch
  import torch.nn.functional
  from torch import nn
  from typing_extensions import TypedDict
  from kornia.core import Module, Tensor, concatenate
  from kornia.filters import SpatialGradient
  from kornia.geometry.transform import pyrdown
  from kornia.utils.helpers import map_location_to_cpu
  from .scale_space_detector import Detector_config, MultiResolutionDetector, get_default_detector_config
label_desc: Use image node_id 1 to create a new _HandcraftedBlock object from inherited base classes: Module with example: obj = _HandcraftedBlock()