def template(cls: T) -> T:
    s13s = {}
    setattr(cls, MAGIC_ATTR, s13s)

    def __class_getitem__(args):
        if (not isinstance(args, tuple)):
            args = (args,)
        if (args not in s13s):
            name = (cls.__name__ + ', '.join(map(str, args)))

            class s12n(cls):
                ...
            s12n.__name__ = name
            s12n.__qualname__ = name
            s13s[args] = s12n
        return s13s[args]
    cls.__class_getitem__ = __class_getitem__
    return cls
def template(cls: T) -> T:
    s13s = {}
    setattr(cls, MAGIC_ATTR, s13s)

    def __class_getitem__(args):
        if (not isinstance(args, tuple)):
            args = (args,)
        if (args not in s13s):
            name = (cls.__name__ + ', '.join(map(str, args)))

            class s12n(cls):
                ...
            s12n.__name__ = name
            s12n.__qualname__ = name
            s13s[args] = s12n
        return s13s[args]
    cls.__class_getitem__ = __class_getitem__
    return cls