Human: how to stack 2d arrays in. Assistant: 
Here is a Python function to stack 2d arrays in a Python program

import numpy as np

def _stack_2d_arrays(list_of_2d_arrays):
        """ Stack 2d arrays in a list of 2d arrays """
        return np.stack(list_of_2d_arrays)

# Enter the list of 2d arrays
list_of_2d_arrays = [np.array([[1, 2], [3, 4]]), np.array([[5, 6], [7, 8]])]

# Calling the function
print((_stack_2d_arrays(list_of_2d_arrays)))

#Example Output
# [[[1 2]
#   [3 4]]
#  [[5 6]
#   [7 8]]]

#Remember to inspect code for bugs.