def METHOD_NAME(self):
    ratio = random.randint(1, 10)
    sample = 1
    if ratio > 8:
        sample = 3
    elif ratio > 5:
        sample = 2
    assert_greater_than_or_equal(self.num_nodes, sample)
    indices = list(range(self.num_nodes))
    return random.sample(indices, sample)