code: def test_color_map():
      """Compute color for lookup value in gradient based on color_stops argument using categorical match"""
      match_stops = [
          [0.0, "rgb(255,0,255)"],
          ["CA", "rgb(255,0,0)"],
          ["NY", "rgb(255,255,0)"],
          ["MA", "rgb(0,0,255)"],
      ]
      assert (
          color_map("CA", match_stops, default_color="gray")
          == "rgb(255,0,0)"
      )
  
imports: import os
  import json
  import numpy
  import pytest
  import pandas
  from pandas.util.testing import assert_frame_equal
  from matplotlib.pyplot import imread
  from mapboxgl.errors import SourceDataError, DateConversionError
  from mapboxgl.utils import df_to_geojson, geojson_to_dict_list, scale_between, create_radius_stops, create_weight_stops, create_numeric_stops, create_color_stops, img_encode, rgb_tuple_from_str, color_map, height_map, numeric_map, convert_date_columns
label_desc: Use image node_id 22 for calling a global function with example usage: test_color_map() without return types