code: def test_text_missing_transform(self):
      renderer = bmr.GlyphRenderer(data_source=ColumnDataSource())
      renderer.glyph = Text()
  
      msg = "expected text_color to be a field with a ColorMapper transform"
      with pytest.raises(ValueError, match=msg):
          renderer.construct_color_bar()
  
imports: from __future__ import annotations
  import pytest
  from bokeh.core.validation.check import ValidationIssue
  from bokeh.models import ColorBar, ColumnDataSource, GeoJSONDataSource, Image, ImageRGBA, ImageStack, IndexFilter, Line, MultiLine, Patch, Scatter, Text, WebDataSource, WeightedStackColorMapper
  from bokeh.transform import linear_cmap, log_cmap
  import bokeh.models.renderers
label_desc: Use image node_id 6 for calling the TestGlyphRenderer_construct_color_bar obj's underlying member method code with example usage: obj.test_text_missing_transform() without return types