code: def test_to_boolean_array_from_strings_invalid_string():
      with pytest.raises(ValueError, match="cannot be cast"):
          BooleanArray._from_sequence_of_strings(
              ["donkey"], dtype="boolean"
          )
  
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.arrays import BooleanArray
  from pandas.core.arrays.boolean import coerce_to_array
label_desc: Use image node_id 14 for calling a global function with example usage: test_to_boolean_array_from_strings_invalid_string() without return types