code: def test_filter_batched_data_heterogeneous(self):
      data = {"line_color": ["red", "red", "blue"]}
      mapping = {"line_color": {"field": "line_color"}}
      filter_batched_data(data, mapping)
      self.assertEqual(data, {"line_color": ["red", "red", "blue"]})
      self.assertEqual(mapping, {"line_color": {"field": "line_color"}})
  
file_path: holoviews/holoviews/tests/plotting/bokeh/test_utils.py
imports: import pytest
  import holoviews
  from holoviews.core import Store
  from holoviews.element.comparison import ComparisonTestCase
  from holoviews.plotting.bokeh.styles import expand_batched_style
  from holoviews.plotting.bokeh.util import filter_batched_data, glyph_order, select_legends
label_desc: Use image node_id 8 for calling the TestBokehUtilsInstantiation obj's underlying member method code with example usage: obj.test_filter_batched_data_heterogeneous() without return types