def METHOD_NAME(self):
    if self.input_fd is not None or self.executable_cmd.split(os.pathsep)[-1] in CommandConfig._ANSIBLE_NON_INERACTIVE_CMDS:
        self.runner_mode = 'subprocess'
    else:
        self.runner_mode = 'pexpect'