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: spm_bms_display_ROI.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8
    
    the code of the file until where you have to start completion: function spm_bms_display_ROI (BMS,mask,method)
% display results from BMS in a region of interest (ROI)
% FORMAT spm_bms_display_ROI (BMS,mask,method)

    
function spm_bms_display_ROI (BMS,mask,method)
% display results from BMS in a region of interest (ROI)
% FORMAT spm_bms_display_ROI (BMS,mask,method)
%
% Input:
% BMS    - BMS.mat file 
% make   - region of interest image (.img)
% method - inference method (FFX or RFX)
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging

% Maria Joao Rosa
% $Id: spm_bms_display_ROI.m 3569 2009-11-13 15:51:07Z guillaume $

% Find graphics window
% -------------------------------------------------------------------------
Fgraph = spm_figure('GetWin','Graphics');

% Input
% -------------------------------------------------------------------------
if nargin<1
    BMS    = spm_select(1,'^BMS.mat$','select BMS.mat files');
    mask   = spm_select(1,'image','select ROI file (.img)');
    method = spm_input('Inference method',+1,'b','FFX|RFX',['ffx';'rfx']);
else
    if nargin <2
        mask   = spm_select(1,'image','select ROI file (.img)');
        method = spm_input('Inference method',+1,'b','FFX|RFX',['ffx';'rfx']);
    end