def cpu_count_logical():
    try:
        return os.sysconf("SC_NPROCESSORS_ONLN")
    except ValueError:
        # mimic os.cpu_count() behavior
        return None
View should unsubscribe a user from a thread
dataset/ETHPy150Open giampaolo/psutil/psutil/_pssunos.py/cpu_count_logical--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/ThreadUnsubscribeViewTest.test_thread_unsubscribe