code: def test_dedup_infinite():
      space = format_search_space(infinite_space)
      dedup = Deduplicator(space)
      for i in range(10):
          p = suggest(rng, space)
          assert dedup(p) is p
  
imports: import numpy
  import nni
  from nni.algorithms.hpo.random_tuner import suggest
  from nni.common.hpo_utils import Deduplicator, deformat_parameters, format_search_space
label_desc: Use image node_id 2 for calling a global function with example usage: test_dedup_infinite() without return types