class_docstr: Base class for MIME non-multipart type messages.
class_docstr_tok: ["Base","class","for","MIME","non-multipart","type","messages","."]
code: def attach(self, payload):
      # The public API prohibits attaching multiple subparts to MIMEBase
      # derived subtypes since none of them are, by definition, of content
      # type multipart/*
      raise errors.MultipartConversionError(
          "Cannot attach additional subparts to non-multipart/*"
      )
  
imports: from email import errors
  from email.mime.base import MIMEBase
label_desc: Use image node_id 1 for calling the MIMENonMultipart obj's underlying member method code with example usage: obj.attach(payload) without return types