code: def is_attention(
      cls, module_name: str, include_output: bool = True
  ) -> bool:
      patterns = cls.QKVO if include_output else cls.QKV
      for pattern in patterns:
          if pattern in module_name:
              return True
      return False
  
imports: from __future__ import annotations
  import logging
  import re
  from typing import Tuple
  from torch.nn import Module
  from nni.compression.utils import get_nested_attr
label_desc: Use image node_id 2 for calling the HuggingfaceModelParser obj's underlying member method code with example usage: obj.is_attention(cls, module_name, include_output) and returns: False, True