test = cv2.imread("breast-hispathology-images/8863/0/8863_idx5_x51_y1251_class0.png",cv2.IMREAD_COLOR)
resized = cv2.resize(test, (50,50), interpolation=cv2.INTER_LINEAR)
img_arrays = [[resized, 0]]
np.shape(img_arrays)
returns:
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (1, 2) + inhomogeneous part