code: def test_expand_style_opts_line_alpha_and_alpha(self):
      style = {"fill_alpha": 0.5, "alpha": 0.2}
      opts = ["alpha", "line_alpha", "fill_alpha"]
      data, mapping = expand_batched_style(style, opts, {}, nvals=3)
      self.assertEqual(data["line_alpha"], [0.2, 0.2, 0.2])
      self.assertEqual(data["fill_alpha"], [0.5, 0.5, 0.5])
      self.assertEqual(
          mapping,
          {
              "line_alpha": {"field": "line_alpha"},
              "fill_alpha": {"field": "fill_alpha"},
          },
      )
  
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 4 for calling the TestBokehUtilsInstantiation obj's underlying member method code with example usage: obj.test_expand_style_opts_line_alpha_and_alpha() without return types