code: def hg(cfg: HourglassConfig) -> HourglassNet:
      return HourglassNet(
          Bottleneck2D,
          head=cfg.head,
          depth=cfg.depth,
          num_stacks=cfg.num_stacks,
          num_blocks=cfg.num_blocks,
          num_classes=cfg.num_classes,
          input_channels=cfg.input_channels,
      )
  
imports: from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Type, Union
  import torch
  import torch.nn.functional
  from torch import nn
  from torch.nn.functional import pixel_shuffle, softmax
  from kornia.core import Module, Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: hg(cfg) and returns: HourglassNet