def get_pid(self, unique_id, configs=None):
RECV_BLOCK_SIZE = <NUM_LIT:16><EOL>if configs is None:<EOL><INDENT>configs = {}<EOL><DEDENT>tmp = self.default_configs.copy()<EOL>tmp.update(configs)<EOL>configs = tmp<EOL>if unique_id in self.processes:<EOL><INDENT>hostname = self.processes[unique_id].hostname<EOL><DEDENT>else:<EOL><INDENT>return constants.PROCESS_NOT_RUNNING_PID<EOL><DEDENT>if self.processes[unique_id].start_command is None:<EOL><INDENT>return constants.PROCESS_NOT_RUNNING_PID<EOL><DEDENT>if self.processes[unique_id].pid_file is not None:<EOL><INDENT>with open_remote_file(hostname, self.processes[unique_id].pid_file,<EOL>username=runtime.get_username(), password=runtime.get_password()) as pid_file:<EOL><INDENT>full_output = pid_file.read()<EOL><DEDENT><DEDENT>elif '<STR_LIT>' in configs.keys():<EOL><INDENT>with open_remote_file(hostname, configs['<STR_LIT>'],<EOL>username=runtime.get_username(), password=runtime.get_password()) as pid_file:<EOL><INDENT>full_output = pid_file.read()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>pid_keyword = self.processes[unique_id].start_command<EOL>if self.processes[unique_id].args is not None:<EOL><INDENT>pid_keyword = "<STR_LIT>".format(pid_keyword, '<STR_LIT:U+0020>'.join(self.processes[unique_id].args))<EOL><DEDENT>pid_keyword = configs.get('<STR_LIT>', pid_keyword)<EOL>pid_command = "<STR_LIT>".format(pid_keyword)<EOL>pid_command = configs.get('<STR_LIT>', pid_command)<EOL>non_failing_command = "<STR_LIT>".format(pid_command)<EOL>env = configs.get("<STR_LIT>", {})<EOL>with get_ssh_client(hostname, username=runtime.get_username(), password=runtime.get_password()) as ssh:<EOL><INDENT>chan = exec_with_env(ssh, non_failing_command, msg="<STR_LIT>", env=env)<EOL><DEDENT>output = chan.recv(RECV_BLOCK_SIZE)<EOL>full_output = output<EOL>while len(output) > <NUM_LIT:0>:<EOL><INDENT>output = chan.recv(RECV_BLOCK_SIZE)<EOL>full_output += output<EOL><DEDENT><DEDENT>if len(full_output) > <NUM_LIT:0>:<EOL><INDENT>pids = [int(pid_str) for pid_str in full_output.split('<STR_LIT:\n>') if pid_str.isdigit()]<EOL>if len(pids) > <NUM_LIT:0>:<EOL><INDENT>return pids<EOL><DEDENT><DEDENT>return constants.PROCESS_NOT_RUNNING_PID<EOL>
Gets the pid of the process with `unique_id`.  If the deployer does not know of a process
        with `unique_id` then it should return a value of constants.PROCESS_NOT_RUNNING_PID