<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_local_arrays(reified_arrays, array_factory=None):
 """ Function that creates arrays, given the definitions in the reified_arrays dictionary and the array_factory keyword argument. Arguments --------- reified_arrays : dictionary Dictionary keyed on array name and array definitions. Can be obtained via cube.arrays(reify=True) Keyword Arguments array_factory : function A function used to create array objects. It's signature should be array_factory(shape, dtype) and should return a constructed array of the supplied shape and data type. If None, numpy.empty will be used. Returns ------- A dictionary of array objects, keyed on array names """



    # By default, create numpy arrays
    if array_factory is None:
        array_factory = np.empty

    # Construct the array dictionary by calling the
    # array_factory for each array
    return { n: array_factory(ra.shape, ra.dtype)
        for n, ra in reified_arrays.iteritems() }