code: def test_save_to_state_dict(
      self, encoder_config: LLMEncoderConfig, tmpdir
  ):
      # With no adapter, the state dict should only contain the model parameters
      encoder = LLMEncoder(encoder_config=encoder_config)
      assert all(
          map(lambda k: "lora_" not in k, encoder.state_dict().keys())
      )
  
imports: import copy
  import pytest
  import torch
  import torch.nn
  from transformers import AutoConfig, PreTrainedModel
  from ludwig.encoders.text_encoders import LLMEncoder
  from ludwig.schema.encoders.text_encoders import LLMEncoderConfig
  from ludwig.schema.llms.peft import BaseAdapterConfig, LoraConfig
  from ludwig.utils.llm_utils import get_context_len
label_desc: Use image node_id 5 for calling the TestLLMEncoder obj's underlying member method code with example usage: obj.test_save_to_state_dict(encoder_config, tmpdir) without return types