def METHOD_NAME(config):
    """Method to get config level and entity."""
    config_level = config["level"]
    entity = "client"
    pool = config["rep_pool_config"]["pool"]
    image = f"{config['rep_pool_config']['pool']}/{config['rep_pool_config']['image']}"
    if config_level == "client":
        config_level = "global"
    elif config_level == "pool":
        entity = pool
    elif config_level == "image":
        entity = image
    return config_level, entity