class_docstr: Benchmark evaluator for NAS-Bench-101.
  
  Parameters
  ----------
  num_epochs
      Queried ``num_epochs``.
  metric
      Queried metric.
  include_intermediates
      Whether to report intermediate results.
  
  See Also
  --------
  nni.nas.benchmark.nasbench101.query_nb101_trial_stats
  nni.nas.benchmark.nasbench101.Nb101TrialConfig
code: def default_space(cls) -> SlimBenchmarkSpace:
      from nni.nas.hub.pytorch.modules.nasbench101 import (
          NasBench101CellConstraint,
          NasBench101Cell,
      )
  
      op_candidates = [
          "conv3x3-bn-relu",
          "conv1x1-bn-relu",
          "maxpool3x3",
      ]
  
      # For readability, expand it here.
      num_nodes = NasBench101Cell._num_nodes_discrete(7)
      # num_nodes = Categorical([2, 3, 4, 5, 6, 7], label='num_nodes')
      ops = [
          Categorical(op_candidates, label="op1"),
          Categorical(op_candidates, label="op2"),
          Categorical(op_candidates, label="op3"),
          Categorical(op_candidates, label="op4"),
          Categorical(op_candidates, label="op5"),
      ]
      inputs = [
          CategoricalMultiple([0], n_chosen=None, label="input1"),
          CategoricalMultiple([0, 1], n_chosen=None, label="input2"),
          CategoricalMultiple([0, 1, 2], n_chosen=None, label="input3"),
          CategoricalMultiple(
              [0, 1, 2, 3], n_chosen=None, label="input4"
          ),
          CategoricalMultiple(
              [0, 1, 2, 3, 4], n_chosen=None, label="input5"
          ),
          CategoricalMultiple(
              [0, 1, 2, 3, 4, 5], n_chosen=None, label="input6"
          ),
      ]
      constraint = NasBench101CellConstraint(9, num_nodes, ops, inputs)
  
      return SlimBenchmarkSpace(
          {
              mutable.label: mutable
              for mutable in itertools.chain(
                  [num_nodes], ops, inputs, [constraint]
              )
          }
      )
  
imports: from __future__ import annotations
  import itertools
  import logging
  import random
  import warnings
  from typing import Any, cast
  import nni
  from nni.mutable import Sample, Mutable, LabeledMutable, Categorical, CategoricalMultiple, label_scope
  from nni.nas.evaluator import Evaluator
  from nni.nas.space import ExecutableModelSpace
  from .space import SlimBenchmarkSpace
label_desc: Use image node_id 2 for calling the NasBench101Benchmark obj's underlying member method code with example usage: obj.default_space(cls) and returns: SlimBenchmarkSpace