code: def affine(self, op_list):
      if not self.affine_resolved:
          transpose_perm_name = self.fork_name("transpose_perm")
          transpose_perm = np.array([0, 3, 1, 2], dtype=np.int32)
          self._create_const_node(transpose_perm_name, [transpose_perm])
  
          input = op_list[0].node.input[0]
          transpose_name = self.fork_name("transpose")
          node = tf.NodeDef()
          node.name = transpose_name
          node.op = "Transpose"
          node.input.extend([input, transpose_perm_name])
          node.attr["T"].type = op_list[0].node.attr["T"].type
          self.op_dict[node.name] = Operator(node)
          self.op_dict[node.name].inputs = [
              self.op_dict[input],
              self.op_dict[transpose_perm_name],
          ]
          self.op_dict[node.name].outputs = op_list[0]
          self.op_dict[input].outputs.remove(op_list[0])
          self.op_dict[input].outputs.append(self.op_dict[node.name])
          op_list[0].node.input[0] = transpose_name
          op_list[0].inputs.remove(self.op_dict[input])
          op_list[0].inputs.append(self.op_dict[node.name])
          self.affine_resolved = True
      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 28 for calling the RefineGraph obj's underlying member method code with example usage: obj.affine(op_list) and returns: op_list