import importlib


def get_model_selected_submodel_name(model_name="climpp",
                                     gt_id="contest_tmp2m",
                                     target_horizon="34w"):
    """Returns the string selected submodel name for a given model, gt_id and target_horizon.

    Args:
      model_name: string model name
      gt_id: contest_tmp2m or contest_precip
      target_horizon: 34w or 56w
    """
    get_selected_submodel_name = getattr(importlib.import_module("src.models."+model_name+".attributes"), "get_selected_submodel_name")
    return get_selected_submodel_name(gt_id, target_horizon)