code: def test_colors_config(monkeypatch, tmpdir):
      f = tmpdir.join("colors_config.yaml")
      f.write(COLORS_CONFIG)
  
      # XXX (dano): CHARTIFY_CONFIG_DIR must end with /
      monkeypatch.setenv(
          "CHARTIFY_CONFIG_DIR", os.path.join(str(tmpdir), "")
      )
  
      # reload modules to reload configuration
      import chartify._core.options
      import chartify._core.colors
      import chartify._core.style
  
      importlib.reload(chartify._core.options)
      importlib.reload(chartify._core.colors)
  
      import chartify._core.colour as colour
  
      assert colour.COLOR_NAME_TO_RGB["foo"] == (0, 100, 80)
      assert colour.COLOR_NAME_TO_RGB["bar"] == (25, 20, 20)
      assert colour.COLOR_NAME_TO_RGB["baz"] == (25, 230, 140)
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_colors_config(monkeypatch, tmpdir) without return types