def METHOD_NAME(fn_or_cls: _F) -> _F:
    for type_ in types:
        if type_ in _registrars:
            raise AssertionError(
                "Type %s is already " "registered" % type_
            )
        _registrars[type_] = fn_or_cls
    return fn_or_cls