code: def scalar_validation_metrics_names(
      workloads: Sequence[bindings.v1WorkloadContainer],
  ) -> Set[str]:
      for workload in workloads:
          if workload.validation:
              metrics = workload.validation.metrics
              if not metrics:
                  continue
              return set(metrics.avgMetrics.keys())
  
      return set()
  
imports: import base64
  import json
  import numbers
  import pathlib
  import sys
  import time
  from argparse import ArgumentError, FileType, Namespace
  from pathlib import Path
  from pprint import pformat
  from typing import Any, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Union
  import tabulate
  import termcolor
  import determined
  import determined.cli.render
  import determined.experimental
  import determined.load
  from determined import cli
  from determined.cli import checkpoint, render
  from determined.cli.errors import CliError
  from determined.cli.ntsc import CONFIG_DESC, parse_config_overrides
  from determined.common import api, context, set_logger, util
  from determined.common.api import authentication, bindings, logs
  from determined.common.declarative_argparse import Arg, Cmd, Group
  from determined.experimental import client
  from .checkpoint import render_checkpoint
  from .project import project_by_name
  from .trial import logs_args_description
label_desc: Use image node_id 23 for calling a global function with example usage: scalar_validation_metrics_names(workloads) and returns: set, set