def get_parent(self, parent_infos, root_object):
if parent_infos and len(parent_infos) == <NUM_LIT:2>:<EOL><INDENT>name = parent_infos[<NUM_LIT:0>]<EOL>uuid = parent_infos[<NUM_LIT:1>]<EOL>singular_name = Utils.get_singular_name(name)<EOL>parent = self.get_instance(singular_name)<EOL>parent.id = uuid<EOL>try:<EOL><INDENT>(parent, connection) = parent.fetch()<EOL><DEDENT>except Exception as ex:<EOL><INDENT>Printer.raise_error("<STR_LIT>" % (name, uuid, ex))<EOL><DEDENT>return parent<EOL><DEDENT>return root_object<EOL>
Get SDK parent object if possible
            Otherwise it will take the user

            Args:
                parent_infos: a list composed of (parent_name, uuid)

            Returns:
                A parent if possible otherwise the user in session