code: def test_hyp_batch_roundtrip(
      make_enc: Callable[[], tiktoken.Encoding], batch
  ):
      enc = make_enc()
  
      encoded = enc.encode_batch(batch)
      assert encoded == [enc.encode(t) for t in batch]
      decoded = enc.decode_batch(encoded)
      assert decoded == batch
  
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 14 for calling a global function with example usage: test_hyp_batch_roundtrip(make_enc, batch) without return types