def _get_mock_message_and_attesting_indices(attestation_data: AttestationData, committee: Sequence[ValidatorIndex], num_voted_attesters: int) -> Tuple[(Hash32, Tuple[(CommitteeIndex, ...)])]:
    '\n    Get ``message_hash`` and voting indices of the given ``committee``.\n    '
    message_hash = AttestationDataAndCustodyBit(data=attestation_data, custody_bit=False).hash_tree_root
    committee_size = len(committee)
    assert (num_voted_attesters <= committee_size)
    attesting_indices = tuple((CommitteeIndex(i) for i in random.sample(range(committee_size), num_voted_attesters)))
    return (message_hash, tuple(sorted(attesting_indices)))
Get ``message_hash`` and voting indices of the given ``committee``.
def _get_mock_message_and_attesting_indices(attestation_data: AttestationData, committee: Sequence[ValidatorIndex], num_voted_attesters: int) -> Tuple[(Hash32, Tuple[(CommitteeIndex, ...)])]:
    '\n    \n    '
    message_hash = AttestationDataAndCustodyBit(data=attestation_data, custody_bit=False).hash_tree_root
    committee_size = len(committee)
    assert (num_voted_attesters <= committee_size)
    attesting_indices = tuple((CommitteeIndex(i) for i in random.sample(range(committee_size), num_voted_attesters)))
    return (message_hash, tuple(sorted(attesting_indices)))