def mock_sar_service_call(self, service_call_function, logical_id, *args):
application_id = args[<NUM_LIT:0>]<EOL>status = '<STR_LIT>'<EOL>if application_id == "<STR_LIT>":<EOL><INDENT>raise InvalidResourceException(logical_id, "<STR_LIT>".format(application_id))<EOL><DEDENT>elif application_id == "<STR_LIT>":<EOL><INDENT>raise InvalidResourceException(logical_id, "<STR_LIT>".format(application_id))<EOL><DEDENT>elif application_id == "<STR_LIT>":<EOL><INDENT>raise InvalidResourceException(logical_id, "<STR_LIT>".format(application_id))<EOL><DEDENT>elif application_id == <NUM_LIT:1>:<EOL><INDENT>raise InvalidResourceException(logical_id, "<STR_LIT>".format(application_id))<EOL><DEDENT>elif application_id == "<STR_LIT>" and self._wait_for_template_active_status < <NUM_LIT:2>:<EOL><INDENT>self._wait_for_template_active_status += <NUM_LIT:1><EOL>self.SLEEP_TIME_SECONDS = <NUM_LIT:0><EOL>self.TEMPLATE_WAIT_TIMEOUT_SECONDS = <NUM_LIT:2><EOL>status = "<STR_LIT>"<EOL><DEDENT>elif application_id == "<STR_LIT>":<EOL><INDENT>self._wait_for_template_active_status = True<EOL>self.SLEEP_TIME_SECONDS = <NUM_LIT:0><EOL>self.TEMPLATE_WAIT_TIMEOUT_SECONDS = <NUM_LIT:0><EOL>status = "<STR_LIT>"<EOL><DEDENT>elif application_id == "<STR_LIT>":<EOL><INDENT>status = "<STR_LIT>"<EOL><DEDENT>message = {<EOL>'<STR_LIT>': args[<NUM_LIT:0>],<EOL>'<STR_LIT>': '<STR_LIT:x>',<EOL>'<STR_LIT>': '<STR_LIT:x>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': status,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>return message<EOL>
Current implementation: args[0] is always the application_id