code: def get_elements(n):
      # dict is deterministic without difficulty of comparing numpy ints
      elements = {}
      for element in generate_random_token():
          if element not in elements:
              elements[element] = len(elements)
              if len(elements) >= n:
                  break
      return list(elements.keys())
  
file_path: scipy/scipy/cluster/tests/test_disjoint_set.py
imports: import pytest
  from pytest import raises
  import numpy
  from scipy.cluster.hierarchy import DisjointSet
  import string
label_desc: Use image node_id 2 for calling a global function with example usage: get_elements(n) and returns: list