code: def test_utf8(mock_llama):
      llama = llama_cpp.Llama(
          model_path=MODEL, vocab_only=True, logits_all=True
      )
  
      output_text = "😀"
  
      ## Test basic completion with utf8 multibyte
      mock_llama(llama, output_text)
      completion = llama.create_completion("", max_tokens=4)
      assert completion["choices"][0]["text"] == output_text
  
      ## Test basic completion with incomplete utf8 multibyte
      mock_llama(llama, output_text)
      completion = llama.create_completion("", max_tokens=1)
      assert completion["choices"][0]["text"] == ""
  
file_path: llama-cpp-python/tests/test_llama.py
imports: import ctypes
  import numpy
  import pytest
  from scipy.special import log_softmax
  import llama_cpp
label_desc: Use image node_id 5 for calling a global function with example usage: test_utf8(mock_llama) without return types