A decorator that sets a list of authenticators for a function.

        :param auths: The list of authenticator instances or classes.
        :return: A function

def authenticators(self, auths):
        """
        A decorator that sets a list of authenticators for a function.

        :param auths: The list of authenticator instances or classes.
        :return: A function
        """

        if not isinstance(auths, (list, tuple)):
            auths = [auths]

        instances = []

        for auth in auths:
            if isclass(auth):
                instances.append(auth())
            else:
                instances.append(auth)

        def decorator(func):
            func.authenticators = instances
            return func
        return decorator