code: def parse_quoted_string(header: str, pos: int, header_name: str) -> Tuple[str, int]:
      
      match = _quoted_string_re.match(header, pos)
      if match is None:
          raise InvalidHeaderFormat(header_name, "expected quoted string", header, pos)
      return _unquote_re.sub(r"\1", match.group()[1:-1]), match.end()
docs: Parse a quoted string from ``header`` at the given position.
  
      Return the unquoted value and the new position.
  
      Raise :exc:`~websockets.exceptions.InvalidHeaderFormat` on invalid inputs.