code: def test_hex_to_rgb():
      assert hex_to_rgb("#FAFBFC") == (250, 251, 252)
      with pytest.raises(ValueError):
          hex_to_rgb("#FFF")
      with pytest.raises(ValueError):
          hex_to_rgb("FFFFFF")
      with pytest.raises(ValueError):
          hex_to_rgb("#FFFFFG")
  
imports: from __future__ import annotations
  from datashader.colors import rgb, hex_to_rgb
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_hex_to_rgb() without return types