def _load_candidate_wrapper(self, source_file=None, source_config=None, dest_file=None,<EOL>file_system=None):
return_status = False<EOL>msg = '<STR_LIT>'<EOL>if source_file and source_config:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if source_config:<EOL><INDENT>if self.inline_transfer:<EOL><INDENT>(return_status, msg) = self._inline_tcl_xfer(source_config=source_config,<EOL>dest_file=dest_file,<EOL>file_system=file_system)<EOL><DEDENT>else:<EOL><INDENT>tmp_file = self._create_tmp_file(source_config)<EOL>(return_status, msg) = self._scp_file(source_file=tmp_file, dest_file=dest_file,<EOL>file_system=file_system)<EOL>if tmp_file and os.path.isfile(tmp_file):<EOL><INDENT>os.remove(tmp_file)<EOL><DEDENT><DEDENT><DEDENT>if source_file:<EOL><INDENT>if self.inline_transfer:<EOL><INDENT>(return_status, msg) = self._inline_tcl_xfer(source_file=source_file,<EOL>dest_file=dest_file,<EOL>file_system=file_system)<EOL><DEDENT>else:<EOL><INDENT>(return_status, msg) = self._scp_file(source_file=source_file, dest_file=dest_file,<EOL>file_system=file_system)<EOL><DEDENT><DEDENT>if not return_status:<EOL><INDENT>if msg == '<STR_LIT>':<EOL><INDENT>msg = "<STR_LIT>"<EOL><DEDENT><DEDENT>return (return_status, msg)<EOL>
Transfer file to remote device for either merge or replace operations

Returns (return_status, msg)