def is_shaked(level='usual', index=1):
    if (not isinstance(index, (int, float))):
        return False
    value = neurons_blocking_read('m_motion_sensor', 'get_shake_strength', (INQUIRE_ID, SHAKE_ID), index)
    if (level in SHAKED_THRESHOLD):
        thres = SHAKED_THRESHOLD[level]
    else:
        thres = SHAKED_THRESHOLD['usual']
    if (value != None):
        return bool((value[0] > thres))
    else:
        return False
def is_shaked(level='usual', index=1):
    if (not isinstance(index, (int, float))):
        return False
    value = neurons_blocking_read('m_motion_sensor', 'get_shake_strength', (INQUIRE_ID, SHAKE_ID), index)
    if (level in SHAKED_THRESHOLD):
        thres = SHAKED_THRESHOLD[level]
    else:
        thres = SHAKED_THRESHOLD['usual']
    if (value != None):
        return bool((value[0] > thres))
    else:
        return False