def METHOD_NAME(ds_meadow: Dataset, table_names: List[str]) -> pd.DataFrame:
    """Combine meadow tables."""
    dfs = []
    for table_name in table_names:
        tb_meadow = ds_meadow[table_name].reset_index()
        df = pd.DataFrame(tb_meadow)
        # assign sex
        if table_name.startswith("both_"):
            df = df.assign(sex="all")
        elif table_name.startswith("female_"):
            df = df.assign(sex="female")
        elif table_name.startswith("male_"):
            df = df.assign(sex="male")
        else:
            raise ValueError(f"Unknown sex for table {table_name}!")
        dfs.append(df)
    df = pd.concat(dfs, ignore_index=True)
    return cast(pd.DataFrame, df)