register_model
register_model(
cls: <class ‘type ,
)-> ’None’
Add a model class to the registry under its derived tag.
Classes declared inside a function are skipped: nothing can resolve a name which only exists while its enclosing call runs, and two of them sharing a name is neither a mistake nor resolvable. So are classes whose derived tag is not a legal one; see get_model_tag.