code: def check_pad_mode(self, source_node, IR_node):
      kernel = MXNetParser.str2intList(source_node.get_attr("kernel"))
      dim = len(kernel)
  
      pad = source_node.get_attr("pad", "()")
      if pad == "()":
          pad = list([0] * dim)
      else:
          pad = MXNetParser.str2intList(pad)
  
      stride = source_node.get_attr("stride")
      if stride == None:
          stride = list([1] * dim)
      else:
          stride = MXNetParser.str2intList(stride)
  
      dilate = source_node.get_attr("dilate")
      if dilate == None:
          dilate = list([1] * dim)
      else:
          dilate = MXNetParser.str2intList(dilate)
  
      input_shape = list()
      if (
          len(source_node.in_edges) == 0
          or IR_node.input[0] not in self.IR_layer_map
      ):
          input_shape = self.data_shape
      else:
          for e in (
              self.IR_layer_map[IR_node.input[0]]
              .attr["_output_shapes"]
              .list.shape[0]
              .dim
          ):
              input_shape.append(e.size)
  
      valid_flag = True
      same_flag = True
  
      for i in range(dim):
          if not pad[i] == 0:
              valid_flag = False
          output_shape = int(
              math.floor(
                  float(
                      input_shape[i]
                      + 2 * pad[i]
                      - dilate[i] * (kernel[i] - 1)
                      - 1
                  )
                  / float(stride[i])
              )
              + 1
          )
          same_pad_shape = int(
              math.ceil(float(input_shape[i]) / float(stride[i]))
          )
          if not output_shape == same_pad_shape:
              same_flag = False
  
      if valid_flag:
          return "VALID"
      elif same_flag:
          return "SAME"
      else:
          return "None"
  
imports: import os
  import sys
  import math
  import mxnet
  import numpy
  from mmdnn.conversion.mxnet.mxnet_graph import MXNetGraph
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.DataStructure.parser import Parser
  from mmdnn.conversion.common.utils import *
label_desc: Use image node_id 7 for calling the MXNetParser obj's underlying member method code with example usage: obj.check_pad_mode(source_node, IR_node) and returns: str, str, str