code: def test_str_accessor_no_new_attributes(any_string_dtype):
      # https://github.com/pandas-dev/pandas/issues/10673
      ser = Series(list("aabbcde"), dtype=any_string_dtype)
      with pytest.raises(
          AttributeError, match="You cannot add any new attribute"
      ):
          ser.str.xlabel = "a"
  
imports: from datetime import datetime, timedelta
  import numpy
  import pytest
  from pandas import DataFrame, Index, MultiIndex, Series
  import pandas._testing
  from pandas.core.strings.accessor import StringMethods
  from pandas.tests.strings import object_pyarrow_numpy
label_desc: Use image node_id 41 for calling a global function with example usage: test_str_accessor_no_new_attributes(any_string_dtype) without return types