def METHOD_NAME(x):
    blob = np.zeros(1, dtype=int)
    # I'm returning the blob to be able to
    # check that the function was executed in different threads
    blob[0] = os.getpid()
    return -.5 * np.sum(x**2), blob