code: def get_config(
      self,
      gradient_checkpointing=False,
      scale_attn_by_inverse_layer_idx=False,
      reorder_and_upcast_attn=False,
  ):
      return RwkvConfig(
          vocab_size=self.vocab_size,
          hidden_size=self.hidden_size,
          num_hidden_layers=self.num_hidden_layers,
          intermediate_size=self.intermediate_size,
          activation_function=self.hidden_act,
          resid_pdrop=self.hidden_dropout_prob,
          attn_pdrop=self.attention_probs_dropout_prob,
          n_positions=self.max_position_embeddings,
          type_vocab_size=self.type_vocab_size,
          use_cache=True,
          bos_token_id=self.bos_token_id,
          eos_token_id=self.eos_token_id,
          pad_token_id=self.pad_token_id,
          gradient_checkpointing=gradient_checkpointing,
          scale_attn_by_inverse_layer_idx=scale_attn_by_inverse_layer_idx,
          reorder_and_upcast_attn=reorder_and_upcast_attn,
      )
  
imports: import unittest
  from unittest.util import safe_repr
  from transformers import AutoTokenizer, RwkvConfig, is_torch_available
  from transformers.testing_utils import require_torch, slow, torch_device
  from ...generation.test_utils import GenerationTesterMixin
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, floats_tensor, ids_tensor, random_attention_mask
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 4 for calling the RwkvModelTester obj's underlying member method code with example usage: obj.get_config(gradient_checkpointing, scale_attn_by_inverse_layer_idx, reorder_and_upcast_attn) and returns: RwkvConfig