code: def build_output_layers(fc_input_size, fc_shapes, num_classes):
      """
      Build a sequence of fully connected layers to go from the final conv layer to num_classes
  
      Returns an nn.ModuleList
      """
      fc_layers = []
      previous_layer_size = fc_input_size
      for shape in fc_shapes:
          fc_layers.append(nn.Linear(previous_layer_size, shape))
          previous_layer_size = shape
      fc_layers.append(nn.Linear(previous_layer_size, num_classes))
      return nn.ModuleList(fc_layers)
  
file_path: stanza/stanza/models/classifiers/utils.py
imports: from enum import Enum
  from torch import nn
label_desc: Use image node_id 1 for calling a global function with example usage: build_output_layers(fc_input_size, fc_shapes, num_classes) and returns: nn