original_docstring: 
      Evaluate a CEL bytes literal, expanding escapes to create a Python bytes object.
  
      :param token: CEL token value
      :return: bytes
  
      ..  todo:: This can be refactored into celpy.celtypes.BytesType.
      
docstring: Evaluate a CEL bytes literal, expanding escapes to create a Python bytes object.
docstring_tokens: Evaluate a CEL bytes literal expanding escapes to create a Python bytes object .
code: def celbytes(token: lark.Token) -> celpy.celtypes.BytesType:
      """
      Evaluate a CEL bytes literal, expanding escapes to create a Python bytes object.
  
      :param token: CEL token value
      :return: bytes
  
      ..  todo:: This can be refactored into celpy.celtypes.BytesType.
      """
      def expand(match_iter: Iterable[Match[str]]) -> Iterator[int]:
          for match in (m.group() for m in match_iter):
              if len(match) == 1:
                  yield from match.encode('utf-8')
              elif match[:2] == r'\x':
                  yield int(match[2:], 16)
              elif match[:2] == r'\u':
                  yield int(match[2:], 16)
              elif match[:1] == '\\' and len(match) == 4:
                  yield int(match[1:], 8)
              else:
                  yield ord(CEL_ESCAPES.get(match, match))
  
      text = token.value
      if text[:2].lower() == "br":
          # Raw; ignore ``\`` escapes
          if text[2:5] == '"""' or text[2:5] == "'''":
              # Long
              expanded = celpy.celtypes.BytesType(ord(c) for c in text[5:-3])
          else:
              # Short
              expanded = celpy.celtypes.BytesType(ord(c) for c in text[3:-1])
      elif text[:1].lower() == "b":
          # Cooked; expand ``\`` escapes
          if text[1:4] == '"""' or text[1:4] == "'''":
              # Long
              match_iter = CEL_ESCAPES_PAT.finditer(text[4:-3])
          else:
              # Short
              match_iter = CEL_ESCAPES_PAT.finditer(text[2:-1])
          expanded = celpy.celtypes.BytesType(expand(match_iter))
      else:
          raise ValueError(f"Invalid bytes literal {token.value!r}")
      return expanded
code_tokens: def celbytes ( token : lark . Token ) -> celpy . celtypes . BytesType : def expand ( match_iter : Iterable [ Match [ str ] ] ) -> Iterator [ int ] : for match in ( m . group ( ) for m in match_iter ) : if len ( match ) == 1 : yield from match . encode ( 'utf-8' ) elif match [ : 2 ] == r'\x' : yield int ( match [ 2 : ] , 16 ) elif match [ : 2 ] == r'\u' : yield int ( match [ 2 : ] , 16 ) elif match [ : 1 ] == '\\' and len ( match ) == 4 : yield int ( match [ 1 : ] , 8 ) else : yield ord ( CEL_ESCAPES . get ( match , match ) ) text = token . value if text [ : 2 ] . lower ( ) == "br" : if text [ 2 : 5 ] == '"""' or text [ 2 : 5 ] == "'''" : expanded = celpy . celtypes . BytesType ( ord ( c ) for c in text [ 5 : - 3 ] ) else : expanded = celpy . celtypes . BytesType ( ord ( c ) for c in text [ 3 : - 1 ] ) elif text [ : 1 ] . lower ( ) == "b" : if text [ 1 : 4 ] == '"""' or text [ 1 : 4 ] == "'''" : match_iter = CEL_ESCAPES_PAT . finditer ( text [ 4 : - 3 ] ) else : match_iter = CEL_ESCAPES_PAT . finditer ( text [ 2 : - 1 ] ) expanded = celpy . celtypes . BytesType ( expand ( match_iter ) ) else : raise ValueError ( f"Invalid bytes literal {token.value!r}" ) return expanded
short_docstring: Evaluate a CEL bytes literal, expanding escapes to create a Python bytes object.
short_docstring_tokens: Evaluate a CEL bytes literal expanding escapes to create a Python bytes object .
comment: """
      Evaluate a CEL bytes literal, expanding escapes to create a Python bytes object.
  
      :param token: CEL token value
      :return: bytes
  
      ..  todo:: This can be refactored into celpy.celtypes.BytesType.
      """$SEP$# Raw; ignore ``\`` escapes$SEP$# Long$SEP$# Short$SEP$# Cooked; expand ``\`` escapes$SEP$# Long$SEP$# Short