get_metadata_spec function

Get metadata specification table