code: def last_code(self):
          
          codes = self.data.split(escape_sequence)
          if not codes:
              return ''
          return ''.join((escape_sequence, codes[-1]))
docs: Return the last escape code in `self.data`.
              If no escape codes are found, '' is returned.