A minor point: When I read the name of the function, I first thought it would correct a table that is not correct before, but when I saw the docstring I understand that it checks if this is the correct table. Maybe call it "identify_table"?