def init_markers(lsl,logfile,datariver):

    if lsl:
        try:
            global lsl_backend
            import pylsl.pylsl as pylsl
            info = pylsl.stream_info("SNAP-Markers","Markers",1,0,pylsl.cf_string,"SNAPmarkers-" + socket.gethostname() + time.asctime())
            lsl_backend = pylsl.stream_outlet(info)
            lsl_backend.pylsl = pylsl
            print "The lab streaming layer is ready for sending markers."
        except:
            print "Error initializing the lab streaming layer backend. You will not be able to send and record event markers via LSL."
            
    if logfile:
        try:
            # find a new slot for the logfiles
            for k in xrange(10000):
                fname = 'logs/markerlog-' + str(k) + '.log'
                if not os.path.exists(fname):
                    global marker_log
                    marker_log = open(fname,'w')
                    break
            print "A marker logfile has been prepared for logging."
        except:
            print "Error initializing the marker logging. Your event markers will not be logged into a file."

    if datariver:
        try:
            global river_backend
            import framework.eventmarkers.datariver_backend
            river_backend = framework.eventmarkers.datariver_backend
            river_backend.send_marker(int(999))
            print "DataRiver has been loaded successfully for sending markers."
        except:
            print "Error initializing the DataRiver backend. You will not be able to send and record event markers via DataRiver."
Returns match for a given parse tree node.
dataset/ETHPy150Open sccn/SNAP/src/framework/eventmarkers/eventmarkers.py/init_markers--crossover with--dataset/ETHPy150Open ctxis/canape/CANAPE.Scripting/Lib/lib2to3/fixer_base.py/BaseFix.match