code: def test_simple_repeated():
      enc = tiktoken.get_encoding("gpt2")
      assert enc.encode("0") == [15]
      assert enc.encode("00") == [405]
      assert enc.encode("000") == [830]
      assert enc.encode("0000") == [2388]
      assert enc.encode("00000") == [20483]
      assert enc.encode("000000") == [10535]
      assert enc.encode("0000000") == [24598]
      assert enc.encode("00000000") == [8269]
      assert enc.encode("000000000") == [10535, 830]
      assert enc.encode("0000000000") == [8269, 405]
      assert enc.encode("00000000000") == [8269, 830]
      assert enc.encode("000000000000") == [8269, 2388]
      assert enc.encode("0000000000000") == [8269, 20483]
      assert enc.encode("00000000000000") == [8269, 10535]
      assert enc.encode("000000000000000") == [8269, 24598]
      assert enc.encode("0000000000000000") == [25645]
      assert enc.encode("00000000000000000") == [8269, 10535, 830]
  
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 2 for calling a global function with example usage: test_simple_repeated() without return types