docstr: Test to_css_color with good inputs.
docstr_tok: ["Test","to_css_color","with","good","inputs","."]
code: def test_to_css_color(self):
      """Test to_css_color with good inputs."""
  
      test_combinations = [
          # Hex-3, 4, 6, 8
          ("#0f0", "#0f0"),
          ("#0f08", "#0f08"),
          ("#00ff00", "#00ff00"),
          ("#00ff0088", "#00ff0088"),
          # Capitalization
          ("#00FF00", "#00FF00"),
          # All-int lists
          ([0, 255, 0], "rgb(0, 255, 0)"),
          ([0, 255, 0, 51], "rgba(0, 255, 0, 0.2)"),
          # All-float lists
          ([0.0, 0.2, 1.0], "rgb(0, 51, 255)"),
          ([0.0, 0.2, 1.0, 0.2], "rgba(0, 51, 255, 0.2)"),
          # Float-int lists
          ([0, 255, 0, 0.2], "rgba(0, 255, 0, 0.2)"),
          # Values beyond 0-255 or 0.0-1.0 bounds
          ([600, -100, 50], "rgb(255, 0, 50)"),
          ([2.0, -1.0, 50], "rgb(255, 0, 50)"),
          # Accept tuples
          ((0, 255, 0), "rgb(0, 255, 0)"),
      ]
  
      for test_arg, expected_out in test_combinations:
          out = color_util.to_css_color(test_arg)
          self.assertEqual(out, expected_out)
  
file_path: streamlit/lib/tests/streamlit/color_util_test.py
imports: import unittest
  from streamlit import color_util
label_desc: Use image node_id 3 for calling the ColorUtilTest obj's underlying member method code with example usage: obj.test_to_css_color() without return types