code: def test_surrogate_pairs_unicode_error(func):
      input_str = "\ud83d\ude4f".encode("utf-8", "surrogatepass")
      with pytest.raises(UnicodeDecodeError):
          func(input_str)
  
imports: import contextlib
  import sys
  import types
  import pytest
  import env
  from pybind11_tests import detailed_error_messages_enabled
  from pybind11_tests import pytypes
label_desc: Use image node_id 18 for calling a global function with example usage: test_surrogate_pairs_unicode_error(func) without return types