code: def set_metrics(self, metrics: List[str]) -> None:
      all_metrics = set(get_scorer_ids())
      for m in metrics:
          if m not in all_metrics:
              raise ValueError(f"{m} is not a valid metric.")
      return self.update("metrics", metrics)
  
imports: import os.path
  from typing import List, NamedTuple, Any
  from vizseq._utils.json import VizSeqJson
  from vizseq.scorers import get_scorer_ids
  from .tokenizers import VizSeqTokenization
label_desc: Use image node_id 7 for calling the VizSeqTaskConfigManager obj's underlying member method code with example usage: obj.set_metrics(metrics) and returns: self