code: def __init__(self, dim_in, dim_out, use_res=True):
      super(HourGlass, self).__init__()
      self.use_res = use_res
  
      self.HG = nn.Sequential(
          HourGlassBlock(dim_in),
          ConvBlock(dim_out, dim_out),
          nn.Conv2D(
              dim_out, dim_out, kernel_size=1, stride=1, bias_attr=False
          ),
          nn.InstanceNorm2D(
              dim_out, weight_attr=False, bias_attr=False
          ),
          nn.ReLU(),
      )
  
      self.Conv1 = nn.Conv2D(dim_out, 3, kernel_size=1, stride=1)
  
      if self.use_res:
          self.Conv2 = nn.Conv2D(
              dim_out, dim_out, kernel_size=1, stride=1
          )
          self.Conv3 = nn.Conv2D(3, dim_out, kernel_size=1, stride=1)
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new HourGlass object from inherited base classes: nn with example: obj = HourGlass(dim_in, dim_out, use_res)