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)
  
file_path: seaborn/seaborn/_core/rules.py
imports: from __future__ import annotations
  import warnings
  from collections import UserString
  from numbers import Number
  from datetime import datetime
  import numpy
  import pandas
  from typing import TYPE_CHECKING
label_desc: Use image node_id 1 to create a new VarType object from inherited base classes: UserString with example: obj = VarType(data)