def _convert_score_modifiers_to_tensors(self, score_modifiers: List[ScoreModifier]) -> Dict[
        str, Dict[str, float]]:
        """
        Helper function that converts a list of score modifiers into 2 dictionaries:
        These dictionaries are 'mult' and 'add' weights.
        """
        mult_tensor = {}
        add_tensor = {}
        for modifier in score_modifiers:
            if modifier.type == ScoreModifierType.Multiply:
                mult_tensor[modifier.field] = modifier.weight
            elif modifier.type == ScoreModifierType.Add:
                add_tensor[modifier.field] = modifier.weight
            else:
                raise InternalError(f'Unknown score modifier type {modifier.type}')

        return mult_tensor, add_tensor

        Helper function that converts a list of score modifiers into 2 dictionaries:
        These dictionaries are 'mult' and 'add' weights.
        
src/marqo/core/vespa_index/vespa_index.py