You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/solana-rust-development/anchor/anchor-escrow-master/programs/escrow/src
    
    the code of the file until where you have to start completion: //! An example of an escrow program, inspired by PaulX tutorial seen here
//! https://paulx.dev/blog/2021/01/14/programming-on-solana-an-introduction/
//! This example has some changes to implementation, but more or less should be the same overall
//! Also gives examples on how to use some newer anchor features and CPI
//!
//! User (Initializer) constructs an escrow deal:
//! - SPL token (X) they will offer and amount
//! - SPL token (Y) count they want in return and amount
//! - Program will take ownership of initializer's token X account
//!
//! Once this escrow is initialised, either:
//! 1. User (Taker) can call the exchange function to exchange their Y for X
//! - This will close the escrow account and no longer be usable
/
    
    pub fn cancel_escrow(ctx: Context<CancelEscrow>) -> ProgramResult {
        // PDA for vault_authority
        let (_vault_authority, vault_authority_bump) =
            Pubkey::find_program_address(&[ESCROW_PDA_SEED], ctx.program_id);
        let authority_seeds = &[&ESCROW_PDA_SEED[..], &[vault_authority_bump]];

        // transfer x tokens from vault_account to initializer_deposit_token_account
        token::transfer(
        ctx.accounts                                              // &mut CancelEscrow
                .into_transfer_to_initializer_context()             // CpiContext<Transfer>
                .with_signer(&[&authority_seeds[..]]),
            ctx.accounts.escrow_account.initializer_amount,
        )?;

        // close PDA(vault_account)
        token::close_account(
        ctx.accounts                                              // &mut CancelEscrow
                .into_close_context()                           // Cpitext(CloseAccount)
                .with_signer(&[&authority_seeds[..]]),                    // signer_seeds
        )?;

        Ok(())
    }