pub fn serialize_parameters(
    transaction_context: &TransactionContext,
    instruction_context: &InstructionContext,
    should_cap_ix_accounts: bool,
    copy_account_data: bool
) -> Result<(AlignedMemory<HOST_ALIGN>, Vec<MemoryRegion>, Vec<SerializedAccountMetadata>), InstructionError>