def check_input(self, token):
        """
        Performs checks on the input token. Raises an exception if unsupported.

        :param token: the token to check
        :type token: Token
        """
        if token is None:
            raise Exception(self.full_name + ": No token provided!")
        if not isinstance(token.payload, Instances):
            raise Exception(self.full_name + ": Not an Instances object!")
def check_input ( self , token ) : if token is None : raise Exception ( self . full_name + ": No token provided!" ) if not isinstance ( token . payload , Instances ) : raise Exception ( self . full_name + ": Not an Instances object!" )
Performs checks on the input token. Raises an exception if unsupported.

        :param token: the token to check
        :type token: Token