code: def demo(sty):
      mpl.style.use(sty)
      fig, ax = plt.subplots(figsize=(3, 3))
  
      ax.set_title(f"style: {sty!r}", color="C0")
  
      ax.plot(th, np.cos(th), "C1", label="C1")
      ax.plot(th, np.sin(th), "C2", label="C2")
      ax.legend()
  
file_path: matplotlib/galleries/users_explain/colors/colors.py
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.patches import Rectangle
  import matplotlib.pyplot
  import numpy
  import matplotlib
  import matplotlib.colors
  import matplotlib.patches
label_desc: Use image node_id 1 for calling a global function with example usage: demo(sty) without return types