code: def rename_FullyConnected(self, source_node):
      IR_node = self._convert_identity_operation(
          source_node, new_op="FullyConnected"
      )
      weights_scope = self.get_weight_name(source_node)
      bias_name = "{0}.bias".format(weights_scope)
      weights_name = "{0}.weight".format(weights_scope)
  
      W = self.state_dict[weights_name].numpy().transpose()
      input_channels, output_channels = W.shape
  
      # Kit weight tranpose
      # weight: N x M -> C x H x W x M -> H x W x C x M -> N x M
      if self.weight_loaded:
          parent = self.src_graph.get_parent(source_node.name, [0])
          if parent:
              while (
                  parent.type == "onnx::Flatten"
                  or parent.type == "onnx::Dropout"
              ):
                  parent = self.src_graph.get_parent(parent.name, [0])
              if len(self.shape_dict[parent.name]) == 4:
                  #
                  original_shape = W.shape
                  channel_first_list = self.shape_dict[parent.name][1:]
                  dim = len(channel_first_list) + 1
                  weight = W.reshape(
                      channel_first_list + [original_shape[1]]
                  )
                  assert dim > 2
                  weight = weight.transpose(
                      list(range(1, dim - 1)) + [0, dim - 1]
                  )
                  W = weight.reshape(original_shape)
  
      # weights
      self.set_weight(source_node.name, "weights", W)
  
      # use_bias
      if bias_name in self.state_dict:
          IR_node.attr["use_bias"].b = True
          bias = self.state_dict[bias_name].numpy()
          self.set_weight(source_node.name, "bias", bias)
      else:
          IR_node.attr["use_bias"].b = False
  
      # units
      IR_node.attr["units"].i = output_channels
  
imports: import os
  import numpy
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.common.DataStructure.parser import Parser
  from mmdnn.conversion.pytorch.pytorch_graph import PytorchGraph040
  from mmdnn.conversion.pytorch.pytorch_graph import PytorchGraph151
  import torch
  import torchvision
label_desc: Use image node_id 20 for calling the PytorchParser obj's underlying member method code with example usage: obj.rename_FullyConnected(source_node) without return types