code: def test_encode_surrogate_pairs():
      enc = tiktoken.get_encoding("cl100k_base")
  
      assert enc.encode("👍") == [9468, 239, 235]
      # surrogate pair gets converted to codepoint
      assert enc.encode("\ud83d\udc4d") == [9468, 239, 235]
  
      # lone surrogate just gets replaced
      assert enc.encode("\ud83d") == enc.encode("�")
  
file_path: tiktoken/tests/test_encoding.py
imports: from typing import Callable
  import hypothesis
  import hypothesis.strategies
  import pytest
  import tiktoken
  from .test_helpers import ENCODING_FACTORIES, MAX_EXAMPLES
label_desc: Use image node_id 7 for calling a global function with example usage: test_encode_surrogate_pairs() without return types