code: def rank(*, x):
      return x.get_shape().ndims
  
file_path: tensorforce/tensorforce/core/utils/tf_util.py
imports: import tensorflow
  from tensorforce import TensorforceError
label_desc: Use image node_id 4 for calling a global function with example usage: rank() and returns: x