code: def test_find_bad_arg_raises(any_string_dtype):
      ser = Series([], dtype=any_string_dtype)
      with pytest.raises(
          TypeError, match="expected a string object, not int"
      ):
          ser.str.find(0)
  
      with pytest.raises(
          TypeError, match="expected a string object, not int"
      ):
          ser.str.rfind(0)
  
imports: from datetime import datetime
  import re
  import numpy
  import pytest
  from pandas.errors import PerformanceWarning
  import pandas.util._test_decorators
  import pandas
  from pandas import Series, _testing
  from pandas.tests.strings import _convert_na_value, object_pyarrow_numpy
label_desc: Use image node_id 43 for calling a global function with example usage: test_find_bad_arg_raises(any_string_dtype) without return types