code: def var_shape(x):
      out = x.get_shape().as_list()
      assert all(
          isinstance(a, int) for a in out
      ), "shape function assumes that shape is fully known"
      return out
  
imports: import numpy
  import tensorflow
  import copy
  import os
  import functools
  import collections
  import multiprocessing
label_desc: Use image node_id 12 for calling a global function with example usage: var_shape(x) and returns: out