code: def test_transformer_pipeline_tobytes():
      nlp = Language()
      nlp.add_pipe("transformer", config=DEFAULT_CONFIG)
      nlp.initialize()
      assert nlp.pipe_names == ["transformer"]
      nlp_bytes = nlp.to_bytes()
  
      nlp2 = Language()
      nlp2.add_pipe("transformer", config=DEFAULT_CONFIG)
      nlp2.from_bytes(nlp_bytes)
      assert nlp2.pipe_names == ["transformer"]
  
imports: import pytest
  import copy
  import spacy
  from spacy import Language
  from spacy.lang.en import English
  from spacy.tests.util import assert_docs_equal
  from spacy.tokens import Doc
  from spacy.util import make_tempdir
  from spacy import util
  import srsly
  from thinc.api import Config, get_current_ops
  from numpy.testing import assert_array_equal
  from ..None import TransformerData
label_desc: Use image node_id 5 for calling a global function with example usage: test_transformer_pipeline_tobytes() without return types