def METHOD_NAME(df: pd.DataFrame, metric: str, sex: str, age: str, variant: str) -> pd.DataFrame:
    short_name = f"{metric}__{sex}__{age}__{variant}"
    # Filter
    metric = metric if metric != no_dim_keyword else ".*"
    sex = sex if sex != no_dim_keyword else ".*"
    age = age if age != no_dim_keyword else ".*"
    variant = variant if variant != no_dim_keyword else ".*"
    regex = rf"{metric}__{sex}__{age}__{variant}"
    columns = list(df.filter(regex=regex).columns)
    df_ = df[columns].dropna(how="all")
    df_ = df_.sort_index()
    # Metadata
    df_.metadata.short_name = short_name
    return df_