<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run_and_exit_if(opts, action, *names):
 """ Run the no-arg function `action` if any of `names` appears in the option dict `opts`. """

    for name in names:
        if name in opts:
            action()
            sys.exit(0)