Given an type ID, return any associated known type; if none is found, then optionally try to look it up and save it. Otherwise, return None.
Parameters
type_id (str) –
The ID for the type.
lookup_type (bool) –
If True, then if the type is not already found, then to look it up by invoking show_types(), save it for the future, and return it.
Returns
The associated RecordType, if found (or looked up) –
otherwise.