code: def is_gated(act_fn: ActivationType) -> bool:
      """
      Return True if the given activation function is gated.
      """
      if not isinstance(act_fn, ActivationType):
          act_fn = ActivationType(act_fn)
  
      return act_fn in [
          ActivationType.GEGLU,
          ActivationType.ReGLU,
          ActivationType.SiGLU,
      ]
  
file_path: DeepSpeed/deepspeed/inference/v2/inference_utils.py
imports: from typing import Dict
  import torch
  from enum import Enum, IntEnum
label_desc: Use image node_id 1 for calling a global function with example usage: is_gated(act_fn) and returns: unknown