fn set_smith_session_keys_and_authority_status<SK>(
    initial_authorities: &mut BTreeMap<u32, (<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, bool)>,
    session_keys_map: &mut BTreeMap<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, SK>,
    smith: &&SmithData,
    identity: &IdentityV2,
) -> Result<u32, String>
where SK: Decode,