human
Complete this python program:
def make_singlethread(inner_func):
assistant
#Here is the Python program you requested.

    """Run the given function inside a single thread.
    """
    def func(*args):
        length = len(args[0])
        result = np.empty(length, dtype=np.float64)
        inner_func(result, *args)
        return result
    return func