code: def var_shape(tensor):
      """
      get TensorFlow Tensor shape
  
      :param tensor: (TensorFlow Tensor) the input tensor
      :return: ([int]) the shape
      """
      out = tensor.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 os
  import collections
  import functools
  import multiprocessing
  from typing import Set
  import numpy
  import tensorflow
label_desc: Use image node_id 17 for calling a global function with example usage: var_shape(tensor) and returns: out