code: def conv_to_fc(x):
      nh = np.prod([v.value for v in x.get_shape()[1:]])
      x = tf.reshape(x, [-1, nh])
      return x
  
imports: import os
  import numpy
  import tensorflow
  from collections import deque
label_desc: Use image node_id 12 for calling a global function with example usage: conv_to_fc(x) and returns: x