def extract_kv_from_spark_row(row: Row) -> Tuple[(Name, Any)]:
    k = (row[internal_index_columns[0]] if (len(internal_index_columns) == 1) else tuple((row[c] for c in internal_index_columns)))
    v = [row[c] for c in internal_data_columns]
    return (k, v)
def extract_kv_from_spark_row(row: Row) -> Tuple[(Name, Any)]:
    k = (row[internal_index_columns[0]] if (len(internal_index_columns) == 1) else tuple((row[c] for c in internal_index_columns)))
    v = [row[c] for c in internal_data_columns]
    return (k, v)