<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_all_configs(self, trionyx_models_only=True):
 """Get all model configs"""

        from trionyx.models import BaseModel

        for index, config in self.configs.items():
            if not isinstance(config.model(), BaseModel):
                continue

            yield config