The function name '_get_mask' has nothing to do with missing values, but the argument is called 'missing_values'. One of the two names should be changed.