def METHOD_NAME():
    try:
        is_hw = request.headers.get('Hw-Env', False)
        if is_hw:
            if HW_LAB_ID in labs:
                return Response('Hardware lab already defined', status=409)
            else:
                labs[HW_LAB_ID] = Lab(HW_LAB_ID, request.get_json())
                return jsonify({'lab_id': HW_LAB_ID})
        lab_id = next(count)
        lab = Lab(lab_id, request.get_json())
        labs[lab_id] = lab
        lab.run()
        lab.activated.wait()
        if lab.error:
            lab.destroy()
            return Response(lab.error, status=500)
    except Exception as ex:
        logger.exception(ex)
        return Response(str(ex), status=500)
    return jsonify({'lab_id': lab_id})