code: def test_detokenize():
      strings = cudf.Series(
          [
              "the",
              "quick",
              "fox",
              "jumped",
              "over",
              "the",
              "lazy",
              "dog",
              "the",
              "siamésé",
              "cat",
              "jumped",
              "under",
              "the",
              "sofa",
          ]
      )
  
      indices = cudf.Series(
          [0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3]
      )
      actual = strings.str.detokenize(indices)
      expected = cudf.Series(
          [
              "the quick fox",
              "jumped over",
              "the lazy dog",
              "the siamésé cat jumped under the sofa",
          ]
      )
      assert type(expected) == type(actual)
      assert_eq(expected, actual)
  
      indices = cudf.Series(
          [4, 0, 0, 0, 0, 4, 1, 1, 4, 2, 2, 2, 2, 4, 3], dtype=np.int8
      )
      actual = strings.str.detokenize(indices, "+")
      expected = cudf.Series(
          [
              "quick+fox+jumped+over",
              "lazy+dog",
              "siamésé+cat+jumped+under",
              "sofa",
              "the+the+the+the",
          ]
      )
      assert type(expected) == type(actual)
      assert_eq(expected, actual)
  
imports: import random
  import string
  import numpy
  import pytest
  import cudf
  from cudf.core.byte_pair_encoding import BytePairEncoder
  from cudf.core.tokenize_vocabulary import TokenizeVocabulary
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 3 for calling a global function with example usage: test_detokenize() without return types