code: def _get_metrics(
      self, logs: Dict[str, Any]
  ) -> Tuple[Dict[str, Any], str]:
      metrics = logs
      metric_type = get_metric_type(logs)
      if self.filter_metrics:
          metrics = {}
          for k, v in logs.items():
              if any(m in k for m in self.filter_metrics) is True:
                  metrics[k] = v
  
      return metrics, metric_type
  
imports: import json
  import logging
  import os
  from typing import Any, Dict, List, Optional, Tuple
  from transformers import TrainerCallback, TrainerControl, TrainerState, TrainingArguments
  from transformers.trainer_utils import get_last_checkpoint
  import determined
label_desc: Use image node_id 3 for calling the DetCallback obj's underlying member method code with example usage: obj._get_metrics(logs) and returns: metrics,  metric_type