def METHOD_NAME(self, index, value):
    if not isinstance(value, (WeightedGaussianState, TaggedWeightedGaussianState)):
        raise ValueError("Cannot form GaussianMixtureState out of "
                         "non-WeightedGaussianState inputs!")
    return self.components.METHOD_NAME(index, value)