code: def transform(self, data, mark, next):
          '''
          Apply the appropriate transformation function on current state data,
          which is supposed to end at this point.
  
          It is expected transformation logic makes use of :attr:`start`,
          :attr:`current` and :attr:`streaming` instance attributes to
          bettee know the state is being left.
  
          :param data: string to transform (includes start)
          :type data: str
          :param mark: string producing the new state jump
          :type mark: str
          :param next: state is about to star, None on finish
          :type next: str or None
  
          :returns: transformed data
          :rtype: str
          '''
          method = getattr(self, 'transform_%s' % self.current, None)
          return method(data, mark, next) if method else datf transform(self, data, mark, next):
          '''
          Apply the appropriate transformation function on current state data,
          which is supposed to end at this point.
  
          It is expected transformation logic makes use of :attr:`start`,
          :attr:`current` and :attr:`streaming` instance attributes to
          bettee know the state is being left.
  
          :param data: string to transform (includes start)
          :type data: str
          :param mark: string producing the new state jump
          :type mark: str
          :param next: state is about to star, None on finish
          :type next: str or None
  
          :returns: transformed data
          :rtype: str
          '''
          method = getattr(self, 'transform_%s' % self.current, None)
          return method(data, mark, next) if method else data
docs: Apply the appropriate transformation function on current state data,
          which is supposed to end at this point.
  
          It is expected transformation logic makes use of :attr:`start`,
          :attr:`current` and :attr:`streaming` instance attributes to
          bettee know the state is being left.
  
          :param data: string to transform (includes start)
          :type data: str
          :param mark: string producing the new state jump
          :type mark: str
          :param next: state is about to star, None on finish
          :type next: str or None
  
          :returns: transformed data
          :rtype: str