def METHOD_NAME(arr, jitter=None):
    """Add a random jitter to data"""
    if jitter is None:
        return arr
    stdev = jitter * (max(arr) - min(arr))
    return arr + np.random.randn(len(arr)) * stdev