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: AGH2_compress.m
    path of file: ./repos/MatlabFunc/ANNS/Hashing/Unsupervised
    
    the code of the file until where you have to start completion: function [B,elapse] = AGH2_compress(A, model)
%   This is a wrapper function of Two Layer AGH (Anchor Graph Hashing) testing.
%
%	Usage:
%	[B,elapse] = AGH2_compress(A, model)
%
%	      A: Rows of vectors of data points. Each row is sample point
%     model: The model generated by AGH2_learn.
%
%	      B: The binary code of the input data A. Each row is sample point
%    elapse: The coding time (testing time).

    
function [B,elapse] = AGH2_compress(A, model)
%   This is a wrapper function of Two Layer AGH (Anchor Graph Hashing) testing.
%
%	Usage:
%	[B,elapse] = AGH2_compress(A, model)
%
%	      A: Rows of vectors of data points. Each row is sample point
%     model: The model generated by AGH2_learn.
%
%	      B: The binary code of the input data A. Each row is sample point
%    elapse: The coding time (testing time).
%
%
%
%   version 2.0 --Nov/2016 
%   version 1.0 --Jan/2014 
%
%   Written by  Yue Lin (linyue29@gmail.com)
%               Deng Cai (dengcai AT gmail DOT com) 
%                                   

tmp_T = tic;

B = TwoLayerAGH_Test(A, model.Anchor, model.W, model.Thres, model.s, model.sigma, model.options);

elapse = toc(tmp_T);
end