code: def parseaddr(addr, *, strict=True):
      """
      Parse addr into its constituent realname and email address parts.
  
      Return a tuple of realname and email address, unless the parse fails, in
      which case return a 2-tuple of ('', '').
  
      If strict is True, use a strict parser which rejects malformed inputs.
      """
      if not strict:
          addrs = _AddressList(addr).addresslist
          if not addrs:
              return ("", "")
          return addrs[0]
  
      if isinstance(addr, list):
          addr = addr[0]
  
      if not isinstance(addr, str):
          return ("", "")
  
      addr = _pre_parse_validation([addr])[0]
      addrs = _post_parse_validation(_AddressList(addr).addresslist)
  
      if not addrs or len(addrs) > 1:
          return ("", "")
  
      return addrs[0]
  
imports: import os
  import re
  import time
  import datetime
  import urllib.parse
  from email._parseaddr import quote
  from email._parseaddr import AddressList
  from email._parseaddr import mktime_tz
  from email._parseaddr import parsedate, parsedate_tz, _parsedate_tz
label_desc: Use image node_id 15 for calling a global function with example usage: parseaddr(addr) and returns: addrs, addrs, str,  str, str,  str, str,  str