def METHOD_NAME(cls):
    """Initializes Horovod with two process sets"""
    _, size = get_env_rank_and_size()
    cls.even_ranks = [rk for rk in range(0, size) if rk % 2 == 0]
    cls.odd_ranks = [rk for rk in range(0, size) if rk % 2 == 1]
    cls.even_set = hvd.ProcessSet(cls.even_ranks)
    cls.odd_set = hvd.ProcessSet(cls.odd_ranks)
    hvd.init(process_sets=[cls.even_set, cls.odd_set])