code: def test_porter_stemmer_measure():
      strings = cudf.Series(
          [
              "tr",
              "ee",
              "tree",
              "y",
              "by",
              "trouble",
              "oats",
              "trees",
              "ivy",
              "troubles",
              "private",
              "oaten",
              "orrery",
              None,
              "",
          ]
      )
      expected = cudf.Series(
          [0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, None, 0],
          dtype=np.int32,
      )
  
      actual = strings.str.porter_stemmer_measure()
  
      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 20 for calling a global function with example usage: test_porter_stemmer_measure() without return types