code: def props(key):
      return {"color": "r" if "a" in key else "gray"}
  
imports: from itertools import product
  import matplotlib.pyplot
  import numpy
  import pandas
  from statsmodels.graphics.mosaicplot import mosaic
label_desc: Use image node_id 1 for calling a global function with example usage: props(key) and returns: dict