code: def _is_nested_choices(values: list[Any]) -> bool:
      assert values  # choices should not be empty
      for value in values:
          if not isinstance(value, dict):
              return False
          if "_name" not in value:
              return False
      return True
  
file_path: nni/nni/common/hpo_utils/formatting.py
imports: from __future__ import annotations
  import math
  from types import SimpleNamespace
  from typing import Any, Dict, NamedTuple, Tuple, cast
  import numpy
  from nni.typehint import Parameters, SearchSpace
label_desc: Use image node_id 6 for calling a global function with example usage: _is_nested_choices(values) and returns: True, False, False