code: def test_type_coercion_fail(self, any_int_numpy_dtype):
      # see gh-15832
      msg = "Trying to coerce float values to integers"
      with pytest.raises(ValueError, match=msg):
          Index([1, 2, 3.5], dtype=any_int_numpy_dtype)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Index, Series
  import pandas._testing
label_desc: Use image node_id 11 for calling the TestFloatNumericIndex obj's underlying member method code with example usage: obj.test_type_coercion_fail(any_int_numpy_dtype) without return types