class_docstr: This class is a wrapper for a Mail object's part and gives it more features.
  
  :param part: The mail part in a Mail object.
docstr: Checks if the given name matches the part's name.
  
  :param name: The name to look for.
  :returns: True if it matches the name (including regular expression).
docstr_tok: ["Checks","if","the","given","name","matches","the","part","'s","name",".",":","param","name",":","The","name","to","look","for",".",":","returns",":","True","if","it","matches","the","name","(","including","regular","expression",")","."]
code: def has_matching_name(self, name: str) -> tuple[Any, Any] | None:
      """
      Checks if the given name matches the part's name.
  
      :param name: The name to look for.
      :returns: True if it matches the name (including regular expression).
      """
      return re.match(name, self.part.get_filename())
  
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 3 for calling the MailPart obj's underlying member method code with example usage: obj.has_matching_name(name) and returns: re