def dimensions_match(matrix1, matrix2):
    """
    This function checks if the orders of the given matrices match.

    Arguments: matrix1 {Matrix} - The first Matrix object matrix2 {Matrix} - The
        second Matrix object

    Returns: boolean-- True or False depending on if their orders match or not.
    """
    return matrix1.get_row_no() == matrix2.get_row_no(
    ) and matrix1.get_col_no() == matrix2.get_col_no()