<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_array(array, **kw):
 """ Extract a subarray by filtering on the given keyword arguments """

    for name, value in kw.items():
        array = array[array[name] == value]
    return array