code: def shape(tensor):
      """
      Get shape of variable.
      Return type is tuple.
      """
      temp_s = tensor.get_shape()
      return tuple([temp_s[i].value for i in range(0, len(temp_s))])
  
file_path: nni/examples/trials/weight_sharing/ga_squad/util.py
imports: import time
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: shape(tensor) and returns: tuple