class_docstr: This class simplifies working with mails returned by the imaplib client.
  
  :param mail_body: The mail body of a mail received from imaplib client.
docstr: Checks the mail for a attachments.
  
  :returns: True if it has attachments and False if not.
docstr_tok: ["Checks","the","mail","for","a","attachments",".",":","returns",":","True","if","it","has","attachments","and","False","if","not","."]
code: def has_attachments(self) -> bool:
      """
      Checks the mail for a attachments.
  
      :returns: True if it has attachments and False if not.
      """
      return self.mail.get_content_maintype() == "multipart"
  
imports: from __future__ import annotations
  import email
  import imaplib
  import os
  import re
  import ssl
  from typing import TYPE_CHECKING, Any, Iterable
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
  from airflow.utils.log.logging_mixin import LoggingMixin
label_desc: Use image node_id 2 for calling the Mail obj's underlying member method code with example usage: obj.has_attachments() and returns: unknown