code: def create_community_node_colors(graph, communities):
      number_of_colors = len(communities[0])
      colors = ["#D4FCB1", "#CDC5FC", "#FFC2C4", "#F2D140", "#BCC6C8"][
          :number_of_colors
      ]
      node_colors = []
      for node in graph:
          current_community_index = 0
          for community in communities:
              if node in community:
                  node_colors.append(colors[current_community_index])
                  break
              current_community_index += 1
      return node_colors
  
imports: import networkx
  import pandas
  import matplotlib.pyplot
label_desc: Use image node_id 1 for calling a global function with example usage: create_community_node_colors(graph, communities) and returns: node_colors