code: def _make_shortcut(
      in_channels: int, out_channels: int, stride: int
  ) -> Module:
      return (
          nn.Sequential(
              nn.AvgPool2d(2, 2),
              ConvNormAct(in_channels, out_channels, 1, act="none"),
          )
          if stride == 2
          else ConvNormAct(in_channels, out_channels, 1, act="none")
      )
  
file_path: kornia/kornia/contrib/models/rt_detr/architecture/resnet_d.py
imports: from __future__ import annotations
  from torch import nn
  from kornia.contrib.models.common import ConvNormAct
  from kornia.core import Module, Tensor
  from kornia.core.check import KORNIA_CHECK
label_desc: Use image node_id 1 for calling a global function with example usage: _make_shortcut(in_channels, out_channels, stride) and returns: unknown