def get_models_hash(model_name,model_config):
    """ Get model name if it's hashed """

    for key in model_config.models_hash:
        if(key == model_name):
            return model_name
        else:
            if(model_config.models_hash[key] == model_name):
                model_name = key
                return model_name