def METHOD_NAME(self, block_size, num_info_bits, num_blocks, is_packed):
    # helper function to set up test data and together with encoder object.
    num_frozen_bits = block_size - num_info_bits
    frozen_bit_positions = cc.frozen_bit_positions(
        block_size, num_info_bits, 0.0)
    frozen_bit_values = np.array([0] * num_frozen_bits,)
    python_encoder = PolarEncoder(
        block_size,
        num_info_bits,
        frozen_bit_positions,
        frozen_bit_values)
    data = np.array([], dtype=int)
    ref = np.array([], dtype=int)
    for i in range(num_blocks):
        d = np.random.randint(2, size=num_info_bits)
        data = np.append(data, d)
        ref = np.append(ref, python_encoder.encode(d))
    polar_encoder = fec.polar_encoder.make(
        block_size,
        num_info_bits,
        frozen_bit_positions,
        frozen_bit_values,
        is_packed)
    return data, ref, polar_encoder