code: def _compute_glue_metrics(self, task_name):
      return lambda p: glue_compute_metrics(
          task_name, np.argmax(p.predictions, axis=1), p.label_ids
      )
  
file_path: adapters/tests/test_adapter_hub.py
imports: import os
  import unittest
  import numpy
  import adapters
  from adapters import ADAPTER_CONFIG_MAP, AdapterConfig, BertAdapterModel, get_adapter_config_hash
  from adapters.trainer import AdapterTrainer
  from adapters.utils import find_in_index
  from transformers import AutoModel, AutoTokenizer, BertForSequenceClassification, GlueDataset, GlueDataTrainingArguments, TrainingArguments, glue_compute_metrics
  from transformers.testing_utils import require_torch, torch_device
  from .test_adapter import ids_tensor
label_desc: Use image node_id 3 for calling the AdapterHubTest obj's underlying member method code with example usage: obj._compute_glue_metrics(task_name) and returns: function