docstr: Return the string value of the header.
docstr_tok: ["Return","the","string","value","of","the","header","."]
code: def __str__(self):
      """Return the string value of the header."""
      self._normalize()
      uchunks = []
      lastcs = None
      lastspace = None
      for string, charset in self._chunks:
          # We must preserve spaces between encoded and non-encoded word
          # boundaries, which means for us we need to add a space when we go
          # from a charset to None/us-ascii, or from None/us-ascii to a
          # charset.  Only do this for the second and subsequent chunks.
          # Don't add a space if the None/us-ascii string already has
          # a space (trailing or leading depending on transition)
          nextcs = charset
          if nextcs == _charset.UNKNOWN8BIT:
              original_bytes = string.encode("ascii", "surrogateescape")
              string = original_bytes.decode("ascii", "replace")
          if uchunks:
              hasspace = string and self._nonctext(string[0])
              if lastcs not in (None, "us-ascii"):
                  if nextcs in (None, "us-ascii") and not hasspace:
                      uchunks.append(SPACE)
                      nextcs = None
              elif nextcs not in (None, "us-ascii") and not lastspace:
                  uchunks.append(SPACE)
          lastspace = string and self._nonctext(string[-1])
          lastcs = nextcs
          uchunks.append(string)
      return EMPTYSTRING.join(uchunks)
  
imports: import re
  import binascii
  import email.quoprimime
  import email.base64mime
  from email.errors import HeaderParseError
  from email import charset
label_desc: Use image node_id 2 for calling the Header obj's underlying member method code with example usage: obj.__str__() and returns: EMPTYSTRING