code: def _is_glu_activation(activation: ModuleType):
      return (
          isinstance(activation, str)
          and activation.endswith("glu")
          or activation in [ReGLU, GEGLU]
      )
  
imports: import enum
  import math
  import warnings
  from typing import Callable, Dict, List, Optional, Tuple, Union, cast
  import torch
  import torch.nn.functional
  from torch import Tensor, nn
  from .utils import init_weights
label_desc: Use image node_id 1 for calling a global function with example usage: _is_glu_activation(activation) and returns: unknown