code: def shape(*, x, unknown=-1):
      return tuple(
          unknown if dims is None else dims
          for dims in x.get_shape().as_list()
      )
  
file_path: tensorforce/tensorforce/core/utils/tf_util.py
imports: import tensorflow
  from tensorforce import TensorforceError
label_desc: Use image node_id 5 for calling a global function with example usage: shape() and returns: tuple