code: def _get_activation_function(self, config: "PretrainedConfig"):
      if hasattr(config, "vision_config") and hasattr(
          config, "text_config"
      ):
          assert (
              config.vision_config.hidden_act
              == config.text_config.hidden_act
          )
          return config.vision_config.hidden_act
      else:
          return config.hidden_act
  
imports: from typing import TYPE_CHECKING
  import torch
  import torch.nn
  import torch.nn.functional
  from transformers.activations import ACT2FN
  from .base import BetterTransformerBaseLayer
label_desc: Use image node_id 3 for calling the CLIPLayerBetterTransformer obj's underlying member method code with example usage: obj._get_activation_function(config) and returns: config, config