def is_debug():
    """Checks if user is currently debugging.

    Debugging is checked via ``'pydevd' in sys.modules``.

    :return: True of False

    """
    return sys.modules in 'pydevd'
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/utils/helpful_functions.py/is_debug/swapped operands of `in`