<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_config(self, model):
 """Get config for given model"""

        if not inspect.isclass(model):
            model = model.__class__
        return self.configs.get(self.get_model_name(model))