code: def metrics_param(
      auc=True, ks=True, accuracy=True, mse=True
  ) -> Type[str]:
      choice = {"auc": auc, "ks": ks, "accuracy": accuracy, "mse": mse}
      namespace = dict(
          choice={k for k, v in choice.items() if v},
      )
      return type("Metrics", (Metrics,), namespace)
  
file_path: FATE/python/fate/components/core/params/_metrics.py
imports: import re
  from typing import Type
  from ._fields import StringChoice, Parameter
label_desc: Use image node_id 2 for calling a global function with example usage: metrics_param(auc, ks, accuracy, mse) and returns: type