def create_valuetype_dict(self, key_type: type, value_type: type) -> proto.MIL_pb2.ValueType:
        """
        Return proto.MIL_pb2.ValueType with dict (dictionaryType) set
        """
        v_type = proto.MIL_pb2.ValueType()
        v_type.dictionaryType.keyType.CopyFrom(self.types_to_proto(key_type))
        v_type.dictionaryType.valueType.CopyFrom(self.types_to_proto(value_type))
        return v_type

        Return proto.MIL_pb2.ValueType with dict (dictionaryType) set
        
coremltools/converters/mil/backend/mil/load.py