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: getObjects.m
    path of file: ./repos/u-shape3D/software/extern
    
    the code of the file until where you have to start completion: function [objects, orphans] = getObjects(session, type, ids, varargin)

    
function [objects, orphans] = getObjects(session, type, ids, varargin)
% GETOBJECTS Retrieve objects from a given type from the OMERO server
%
%   objects = getObjects(session, type, ids) returns all the objects of the
%   specified type, identified by the input ids.
%   If ids is an empty array, only the objects belonging to the session
%   owner in the context of the current group are returned. If ids is non
%   empty, all objects are returned independ