model_info function

Exract info from model