class_docstr: THe metric summary result data model
class_docstr_tok: ["THe","metric","summary","result","data","model"]
code: def new_summary(
      cls, data: Dict[str, Any], visualization: Callable
  ) -> "MetricSummary":
      summary = cls(data=data)
      summary._build_visualization = visualization
      return summary
  
imports: import warnings
  from typing import Any, Callable, Dict
  from argilla.pydantic_v1 import BaseModel, PrivateAttr
label_desc: Use image node_id 2 for calling the MetricSummary obj's underlying member method code with example usage: obj.new_summary(cls, data, visualization) and returns: summary