def METHOD_NAME(cls):
    """The class decorator used to register all Adaptor subclasses.
    Args:
        cls (class): The class of register.
    """
    assert cls.__name__.endswith("Adaptor"), "The name of subclass of Adaptor should end with 'Adaptor' substring."
    if cls.__name__[: -len("Adaptor")].lower() in FRAMEWORKS:
        raise ValueError("Cannot have two frameworks with the same name.")
    FRAMEWORKS[cls.__name__[: -len("Adaptor")].lower()] = cls
    return cls