Find out the type of model configured and dispatch the request to the appropriate method

def build_model(self):
        '''Find out the type of model configured and dispatch the request to the appropriate method'''
        if self.model_config['model-type']:
            return self.build_red()
        elif self.model_config['model-type']:
            return self.buidl_hred()
        else:
            raise Error("Unrecognized model type '{}'".format(self.model_config['model-type']))