def _test_function(x):
    '''
    Wastes a random amount of time, then
    returns the average of :py:obj:`x`.

    '''

    for i in range(np.random.randint(99999)):
        j = i ** 2

    return np.sum(x) / float(len(x))
def _test_function ( x ) : for i in range ( np . random . randint ( 99999 ) ) : j = i ** 2 return np . sum ( x ) / float ( len ( x ) )
Wastes a random amount of time, then
    returns the average of :py:obj:`x`.