code: def bn(self, op_list):
      if not self.affine_resolved:
          for op in op_list:
              if (
                  op.node.op == "Mul"
                  or op.node.op == "Add"
                  or op.node.op == "Sub"
                  or op.node.op == "AddV2"
              ):
                  self._nchw_to_nhwc(op)
              elif op.node.op == "Mean":
                  indices = np.array([1, 2], dtype=np.int32)
                  self._create_const_node(op.node.input[1], [indices])
              elif op.node.op == "Sum":
                  indices = np.array([0, 1, 2], dtype=np.int32)
                  self._create_const_node(op.node.input[1], [indices])
              elif op.node.op == "Reshape":
                  shape = self._run_tensor(op.node.input[1])[0]
                  shape[[1, 2, 3]] = shape[[2, 3, 1]]
                  self._create_const_node(op.node.input[1], [shape])
      else:
          for op in op_list:
              if (
                  op.node.op == "Mul"
                  or op.node.op == "Add"
                  or op.node.op == "Sub"
                  or op.node.op == "AddV2"
              ):
                  node_name = [
                      inp.node.name for inp in op.inputs if inp.const
                  ]
                  if node_name:
                      node_name = node_name[0]
                      value = self._run_tensor(node_name)[0]
                      if len(value.shape) == 4:
                          self._remove_node(self.op_dict[node_name])
                          self._create_const_node(node_name, [value])
      return op_list[-1]
  
imports: import numpy
  import tensorflow.compat.v1
  from tensorflow.core.framework.tensor_pb2 import TensorProto
  from tensorflow.core.framework.tensor_shape_pb2 import TensorShapeProto
label_desc: Use image node_id 27 for calling the RefineGraph obj's underlying member method code with example usage: obj.bn(op_list) and returns: op_list