code: def rename_ConvNd(self, source_node):
      kwargs = dict()
      kwargs["dilations"] = (
          [1] + list(source_node.get_attr("dilation")) + [1]
      )
      kwargs["pads"] = (
          [0] + list(source_node.get_attr("padding")) + [0]
      ) * 2
      kwargs["strides"] = (
          [1] + list(source_node.get_attr("stride")) + [1]
      )
      kwargs["group"] = source_node.get_attr("groups")
  
      # handle weight
      weight = source_node.get_attr("next_functions")[1][
          0
      ].variable.data.numpy()
      dim = weight.ndim - 2
  
      if source_node.get_attr("transposed"):
          IR_node = self._convert_identity_operation(
              source_node, new_op="ConvTranpose"
          )
          weight = np.transpose(
              weight, list(range(2, dim + 2)) + [0, 1]
          )
      else:
          IR_node = self._convert_identity_operation(
              source_node, new_op="Conv"
          )
          weight = np.transpose(
              weight, list(range(2, dim + 2)) + [1, 0]
          )
  
      self.set_weight(source_node.name, "weights", weight)
      kwargs["kernel_shape"] = list(weight.shape)
  
      # handle bias
      if source_node.get_attr("next_functions")[2][0]:
          bias = source_node.get_attr("next_functions")[2][
              0
          ].variable.data.numpy()
          self.set_weight(source_node.name, "bias", weight)
          kwargs["use_bias"] = True
      else:
          kwargs["use_bias"] = False
  
      assign_IRnode_values(IR_node, kwargs)
  
imports: import os
  import numpy
  from torch.utils.serialization import load_lua
  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.torch.torch_graph import TorchGraph
label_desc: Use image node_id 6 for calling the TorchParser obj's underlying member method code with example usage: obj.rename_ConvNd(source_node) without return types