def show_and_action(name=None, action=None):

    #using restore check function to validate the given name
    name = tmux_id_4_show(name)
    
    if not name:
        #interactively show details
        while 1:
            list_all_sessions()
            idx = raw_input("retmux> Please give backup No. (press q to exit):")

            if not idx:
                log.print_err("Invalid index: (empty)")
            elif idx.lower() == 'q':
                break
            elif not tmux_dict.has_key(idx):
               log.print_err("Invalid index: " + idx)
            else:
                tmux = tmux_dict[idx]
                print util.get_line('>')
                print log.hl('Details of backup:','bold') +'%s'% tmux.tid
                print util.get_line('>')
                print '\n'.join(tmux.long_info())
                print util.get_line('<')
                if action:
                    action(tmux)
    else:
        #till here, the name should be validated, exists
        print log.hl('Details of backup:','bold') +'%s'% name
        print util.get_line('=')
        tmux = util.get_tmux_by_id(name)
        print '\n'.join(tmux.long_info()) 
        if action:
            action(tmux)
sets the values for all actuators combined.
dataset/ETHPy150Open sk1418/retmux/tmuxbk/controller.py/show_and_action--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/environment.py/ODEEnvironment.performAction