code: def test_rgb():
      assert rgb("#FAFBFC") == (250, 251, 252)
      assert rgb("#FAFBFC") == (250, 251, 252)
      assert rgb("blue") == (0, 0, 255)
      assert rgb("blue") == (0, 0, 255)
      assert rgb((255, 255, 255)) == (255, 255, 255)
      with pytest.raises(ValueError):
          rgb((255, 256, 255))
      with pytest.raises(ValueError):
          rgb((-1, 255, 255))
      with pytest.raises(ValueError):
          rgb("foobar")
  
imports: from __future__ import annotations
  from datashader.colors import rgb, hex_to_rgb
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_rgb() without return types