<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
I have two arrays:
<ASSISTANT_TASK:>
Python Code:
import numpy as np
a = np.array( 
    [[[ 0,  1, 2, 3],
     [ 2,  3, 4, 5],
     [ 4,  5, 6, 7]],
    [[ 6,  7, 8, 9],
     [ 8,  9, 10, 11],
     [10, 11, 12, 13]],
    [[12, 13, 14, 15],
     [14, 15, 16, 17],
     [16, 17, 18, 19]]]
)
b = np.array( 
    [[0, 1, 2],
    [2, 1, 3],
[1, 0, 3]]
)
result = np.take_along_axis(a, b[..., np.newaxis], axis=-1)[..., 0]
<END_TASK>