code: def test_statistics_compile(self):
      length = 10
      gen_idx = partial(random.sample, list(range(length)), length)
      i = tools.initIterate(list, gen_idx)
      self.assertSetEqual(set(i), set(range(length)))
  
imports: from functools import partial
  import random
  import unittest
  from deap import tools
label_desc: Use image node_id 1 for calling the LogbookTest obj's underlying member method code with example usage: obj.test_statistics_compile() without return types