code: def __init__(self, metrics: list[str] | None = None):
      self.metrics = metrics
      self.all_feature_names_: list[str]
      self.feature_names_: list[str]
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/tsbench/surrogate/transformers/performance.py
imports: from __future__ import annotations
  from typing import Any, List, Optional
  import numpy
  import numpy.typing
  import pandas
  from sklearn.base import TransformerMixin
  from tsbench.evaluations.metrics import Performance
label_desc: Use image node_id 1 to create a new PerformanceEncoder object  with example: obj = PerformanceEncoder(metrics)