from typing import List, Tuple, Union import numpy as np def reshape_matrix(a: List[List[Union[int, float]]], new_shape: Tuple[int, int]) -> List[List[Union[int, float]]]: arr = np.array(a) original_elements = arr.size new_elements = new_shape[0] * new_shape[1] if original_elements != new_element...