code: def _token_generator(token_prefix):
      for i in range(10000):
          prefix = "%s-%d-" % (token_prefix, i)
          # we need to use a consistent hash here, which is why
          # random.seed(prefix) or random.seed(hash(prefix)) won't work
          random.seed(zlib.adler32(to_bytes(prefix)))
          yield prefix + "".join(
              random.sample(string.ascii_lowercase, 4)
          )
  
file_path: metaflow/metaflow/plugins/aws/step_functions/production_token.py
imports: import os
  import json
  import random
  import string
  import zlib
  from itertools import dropwhile, islice
  from metaflow.util import to_bytes
label_desc: Use image node_id 1 for calling a global function with example usage: _token_generator(token_prefix) without return types