code: def test_pad_width_bad_arg_raises(method_name, any_string_dtype):
      # see gh-13598
      s = Series(["1", "22", "a", "bb"], dtype=any_string_dtype)
      op = operator.methodcaller(method_name, "f")
  
      msg = "width must be of integer type, not str"
      with pytest.raises(TypeError, match=msg):
          op(s.str)
  
imports: from datetime import datetime
  import operator
  import numpy
  import pytest
  from pandas import Series, _testing
label_desc: Use image node_id 15 for calling a global function with example usage: test_pad_width_bad_arg_raises(method_name, any_string_dtype) without return types