code: def test_scalar_map_mode(composite_mapper):
      isinstance(composite_mapper.scalar_map_mode, str)
      with pytest.raises(ValueError, match="Invalid `scalar_map_mode`"):
          composite_mapper.scalar_map_mode = "foo"
  
imports: import pytest
  from vtkmodules.vtkCommonCore import vtkLookupTable
  import pyvista
  from pyvista.plotting.composite_mapper import BlockAttributes, CompositePolyDataMapper
label_desc: Use image node_id 9 for calling a global function with example usage: test_scalar_map_mode(composite_mapper) without return types