code: def clean_bytes(line):
          
  
          text = line.decode('utf-8').replace('\r', '').strip('\n')
          return re.sub(r'\x1b[^m]*m', '', text).replace("``", "`\u200b`").strip('\n')
docs: Cleans a byte sequence of shell directives and decodes it.