Human: Can you show me a Python function to 2 dimensional array access with an array. Assistant: 
Here is a Python function to 2 dimensional array access with an array

import numpy as np

def get_2d_array(array, index):
    """
    :param array: 2 dimensional array
    :param index: index of the array
    :return: 1 dimensional array
    """
    return array[index]

# Enter the array
array = np.array([[1, 2, 3], [4, 5, 6]])

# Calling the function
print((get_2d_array(array, 0)))

#Example Output
# [1 2 3]

#Remember to inspect code for bugs.