code: def json_metric_outputs(
      roles: Optional[List[Role]] = None, desc="", optional=False
  ) -> Type[JsonMetricFileWriter]:
      return _create_artifact_annotation(
          False, True, JsonMetricArtifactDescribe, "metric"
      )(roles, desc, optional)
  
imports: from typing import List, Optional, Type
  from .._base_type import Role, _create_artifact_annotation
  from ._json import JsonMetricArtifactDescribe, JsonMetricFileWriter, JsonMetricRestfulWriter
label_desc: Use image node_id 2 for calling a global function with example usage: json_metric_outputs(roles, desc, optional) and returns: _create_artifact_annotation