code: def test_bar_value_error_raises():
      df = DataFrame({"A": [-100, -60, -30, -20]})
  
      msg = "`align` should be in {'left', 'right', 'mid', 'mean', 'zero'} or"
      with pytest.raises(ValueError, match=msg):
          df.style.bar(
              align="poorly", color=["#d65f5f", "#5fba7d"]
          ).to_html()
  
      msg = r"`width` must be a value in \[0, 100\]"
      with pytest.raises(ValueError, match=msg):
          df.style.bar(width=200).to_html()
  
      msg = r"`height` must be a value in \[0, 100\]"
      with pytest.raises(ValueError, match=msg):
          df.style.bar(height=200).to_html()
  
imports: import io
  import numpy
  import pytest
  from pandas import NA, DataFrame, read_csv
label_desc: Use image node_id 17 for calling a global function with example usage: test_bar_value_error_raises() without return types