code: def test_css_to_excel_bad_colors(input_color):
      # see gh-18392
      css = (
          f"border-top-color: {input_color}; "
          f"border-right-color: {input_color}; "
          f"border-bottom-color: {input_color}; "
          f"border-left-color: {input_color}; "
          f"background-color: {input_color}; "
          f"color: {input_color}"
      )
  
      expected = {}
  
      if input_color is not None:
          expected["fill"] = {"patternType": "solid"}
  
      with tm.assert_produces_warning(CSSWarning):
          convert = CSSToExcelConverter()
          assert expected == convert(css)
  
file_path: pandas/pandas/tests/io/formats/test_to_excel.py
imports: import string
  import pytest
  from pandas.errors import CSSWarning
  import pandas._testing
  from pandas.io.formats.excel import CssExcelCell, CSSToExcelConverter
label_desc: Use image node_id 5 for calling a global function with example usage: test_css_to_excel_bad_colors(input_color) without return types