class_docstr: Prevent comparisons elsewhere in the library from using the wrong name.
  
  Errors are simple assertions because users should not be able to trigger
  them. If that changes, they should be more verbose.
class_docstr_tok: ["Prevent","comparisons","elsewhere","in","the","library","from","using","the","wrong","name",".","Errors","are","simple","assertions","because","users","should","not","be","able","to","trigger","them",".","If","that","changes",",","they","should","be","more","verbose","."]
code: def __init__(self, data):
      assert data in self.allowed, data
      super().__init__(data)
  
imports: from __future__ import annotations
  import warnings
  import itertools
  from copy import copy
  from collections import UserString
  from collections.abc import Iterable, Sequence, Mapping
  from numbers import Number
  from datetime import datetime
  import numpy
  import pandas
  import matplotlib
  from seaborn._core.data import PlotData
  from seaborn.palettes import QUAL_PALETTES, color_palette
  from seaborn.utils import _check_argument, _version_predates, desaturate, locator_to_legend_entries, get_color_cycle, remove_na
label_desc: Use image node_id 1 to create a new VariableType object from inherited base classes: UserString with example: obj = VariableType(data)