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: read_img_rgb.m
    path of file: ./repos/refinenet/main/my_utils
    
    the code of the file until where you have to start completion: function img_data=read_img_rgb(img_file, data_type)

assert(strcmp(data_type, 'uint8'));

try

    
function img_data=read_img_rgb(img_file, data_type)

assert(strcmp(data_type, 'uint8'));

try

	[img_data, map] = imread(img_file);

catch err_info
	
	disp(err_info);
	disp(img_file);
	error('image read error');

end