def contains_one_instance(tokenized, element):
    """ Return True if tokenized contains only one instance of the class
    element. """
    contexts = [t for t in tokenized if isinstance(t, element)]
    return len(contexts) == 1