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