def show_state(*arguments):
    """Shows the contents of the state loaded by the configuration or from
    the file specified as an argument.
    """
    if len(arguments) == 0:
        state_file = conf['pyexperiment.state_filename']
    else:
        state_file = arguments[0]
    print_bold("Load state from file '%s'",
               state_file)
    try:
        state.load(state_file, lazy=False, raise_error=True)
    except __HOLE__ as err:
        print(err)
    else:
        if len(state) > 0:
            state.show()
        else:
            print("State empty")
dataset/ETHPy150Open duerrp/pyexperiment/pyexperiment/experiment.py/show_state