code: def test_sentencizer_serialize_bytes(en_vocab):
      punct_chars = [".", "~", "+"]
      sentencizer = Sentencizer(punct_chars=punct_chars)
      assert sentencizer.punct_chars == set(punct_chars)
      bytes_data = sentencizer.to_bytes()
      new_sentencizer = Sentencizer(punct_chars=None).from_bytes(
          bytes_data
      )
      assert new_sentencizer.punct_chars == set(punct_chars)
  
file_path: spacy/spacy/tests/pipeline/test_sentencizer.py
imports: import pytest
  import spacy
  from spacy.lang.en import English
  from spacy.pipeline import Sentencizer
  from spacy.tokens import Doc
label_desc: Use image node_id 6 for calling a global function with example usage: test_sentencizer_serialize_bytes(en_vocab) without return types