code: def shape_list(tensor):
      """Return list of dims, statically where possible."""
      tensor = tf.convert_to_tensor(tensor)
  
      if tensor.get_shape().dims is None:
          return tf.shape(tensor)
  
      static = tensor.get_shape().as_list()
      shape = tf.shape(tensor)
  
      ret = []
      for i, _ in enumerate(static):
          dim = static[i]
          if dim is None:
              dim = shape[i]
          ret.append(dim)
      return ret
  
file_path: delta/delta/layers/utils_tf.py
imports: import math
  import numpy
  import tensorflow
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling a global function with example usage: shape_list(tensor) and returns: ret, tf