<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pseudo(DIs, random_seed=None):
 """ Draw a bootstrap sample of directions returning as many bootstrapped samples as in the input directions Parameters DIs : nested list of dec, inc lists (known as a di_block) random_seed : set random seed for reproducible number generation (default is None) Returns ------- Bootstrap_directions : nested list of dec, inc lists that have been bootstrapped resampled """

    if random_seed != None:
        np.random.seed(random_seed)
    Inds = np.random.randint(len(DIs), size=len(DIs))
    D = np.array(DIs)
    return D[Inds]