code: def test_nbsp_doc():
      """
      Test that the space conversion methods will convert to and from NBSP
      """
      doc = CoNLL.conll2doc(input_str=ENGLISH_NBSP_SAMPLE)
  
      assert (
          doc.sentences[0].text
          == "Please note that neither the e-mail address nor name of the sender have been verified."
      )
      assert doc.sentences[0].words[12].misc == "SpacesAfter=\\u00A0"
      assert misc_to_space_after(doc.sentences[0].words[12].misc) == " "
      assert space_after_to_misc(" ") == "SpacesAfter=\\u00A0"
  
file_path: stanza/stanza/tests/server/test_java_protobuf_requests.py
imports: import tempfile
  import pytest
  from stanza.models.common.utils import misc_to_space_after, space_after_to_misc
  from stanza.models.constituency import tree_reader
  from stanza.server import java_protobuf_requests
  from stanza.tests import *
  from stanza.utils.conll import CoNLL
  from stanza.protobuf import DependencyGraph
label_desc: Use image node_id 4 for calling a global function with example usage: test_nbsp_doc() without return types