code: def is_ffn(cls, module_name: str, ffn_num: int = 1) -> bool:
      if cls.is_attention(module_name):
          return False
      if ffn_num == 1:
          for pattern in cls.FFN1:
              if pattern in module_name:
                  return True
      if ffn_num == 2:
          for pattern in cls.FFN2:
              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 4 for calling the HuggingfaceModelParser obj's underlying member method code with example usage: obj.is_ffn(cls, module_name, ffn_num) and returns: False, False, True, True