<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def window_from_array(array):
 """Convert a `numpy.ndarray` into a LAL `Window` object """

    from ...utils.lal import (find_typed_function)

    dtype = array.dtype

    # create sequence
    seq = find_typed_function(dtype, 'Create', 'Sequence')(array.size)
    seq.data = array

    # create window from sequence
    return find_typed_function(dtype, 'Create', 'WindowFromSequence')(seq)