def copy(self, klass=None):
chain = (<EOL>klass if klass else self.__class__<EOL>)(*self._args, **self._kwargs)<EOL>chain._tokens = self._tokens.copy()<EOL>return chain<EOL>
Create a new instance of the current chain.