code: def _update_pathway_definitions(crosstalk_corrected_index_map,
                                  gene_row_names,
                                  pathway_column_names):
      
      corrected_pathway_definitions = {}
      for pathway_index, gene_indices in crosstalk_corrected_index_map.items():
          pathway = pathway_column_names[pathway_index]
          genes = set([gene_row_names[index] for index in list(gene_indices)])
          corrected_pathway_definitions[pathway] = genes
      return corrected_pathway_definitions
docs: Helper function to convert the mapping of int
      (pathway id -> list of gene ids) to the corresponding pathway
      names and gene identifiers.