code: def ndims(self):
      return len(self.static)
  
file_path: tensorpack/tensorpack/models/shape_utils.py
imports: import tensorflow
label_desc: Use image node_id 4 for calling the StaticDynamicShape obj's underlying member method code with example usage: obj.ndims() and returns: len