code: def test_position_float_raises(styler):
      msg = "`position_float` should be one of 'raggedright', 'raggedleft', 'centering',"
      with pytest.raises(ValueError, match=msg):
          styler.to_latex(position_float="bad_string")
  
      msg = (
          "`position_float` cannot be used in 'longtable' `environment`"
      )
      with pytest.raises(ValueError, match=msg):
          styler.to_latex(
              position_float="centering", environment="longtable"
          )
  
imports: from textwrap import dedent
  import numpy
  import pytest
  from pandas import DataFrame, MultiIndex, Series, option_context
  from pandas.io.formats.style import Styler
  from pandas.io.formats.style_render import _parse_latex_cell_styles, _parse_latex_css_conversion, _parse_latex_header_span, _parse_latex_table_styles, _parse_latex_table_wrapping
label_desc: Use image node_id 11 for calling a global function with example usage: test_position_float_raises(styler) without return types