code: def test_tricky_container_to_bytes_raises(self, unicode_container):
      # GH 26447
      msg = "^'str' object cannot be interpreted as an integer$"
      with pytest.raises(TypeError, match=msg):
          bytes(unicode_container)
  
file_path: pandas/pandas/tests/indexes/test_frozen.py
imports: import re
  import pytest
  from pandas.core.indexes.frozen import FrozenList
label_desc: Use image node_id 12 for calling the TestFrozenList obj's underlying member method code with example usage: obj.test_tricky_container_to_bytes_raises(unicode_container) without return types