def get_model_and_uncategorized(self, data_dict):
        """
        Splits data_dict into two dictionaries:
        one for data which matches the model and one for data that doesn't
        Does not include reserved fields.
        """
        if not data_dict:
            return {}, {}
        model_data = {}
        uncategorized_data = {}
        slugs = [field.slug for field in self.fields]
        for k, v in data_dict.items():
            if k in slugs:
                model_data[k] = v
            elif is_system_key(k):
                pass
            else:
                uncategorized_data[k] = v

        return model_data, uncategorized_data
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/custom_data_fields/models.py/CustomDataFieldsDefinition.get_model_and_uncategorized/original