class_docstr: Provides base test running methods for testing an adapter method implementation.
class_docstr_tok: ["Provides","base","test","running","methods","for","testing","an","adapter","method","implementation","."]
code: def filter_parameters(self, model, filter_keys):
      return {
          k: v
          for (k, v) in model.named_parameters()
          if any([filter_key in k for filter_key in filter_keys])
      }
  
imports: import copy
  import os
  import tempfile
  import torch
  import adapters
  from adapters import ADAPTER_MODEL_MAPPING, AdapterSetup, AdapterTrainer, AutoAdapterModel
  from adapters.heads import CausalLMHead
  from adapters.utils import WEIGHTS_NAME
  from adapters.wrappers import load_model
  from transformers import TrainingArguments
  from transformers.testing_utils import require_torch, torch_device
label_desc: Use image node_id 1 for calling the AdapterMethodBaseTestMixin obj's underlying member method code with example usage: obj.filter_parameters(model, filter_keys) and returns: unknown