class_docstr: The fixed version of NAS-Bench-101 Cell, used in python-version execution engine.
class_docstr_tok: ["The","fixed","version","of","NAS-Bench-101","Cell",",","used","in","python-version","execution","engine","."]
code: def build_connection_matrix(adjacency_list, num_nodes):
      adjacency_list = [
          []
      ] + adjacency_list  # add adjacency for first node
      connections = np.zeros((num_nodes, num_nodes), dtype="int")
      for i, lst in enumerate(adjacency_list):
          assert all([0 <= k < i for k in lst])
          for k in lst:
              connections[k, i] = 1
      return connections
  
imports: import logging
  from collections import OrderedDict
  from typing import Callable, List, Optional, Union, Dict, Tuple, Callable, Iterable, Any, cast
  import numpy
  import torch
  import torch.nn
  from nni.mutable import Constraint, Categorical, CategoricalMultiple, Constraint, ConstraintViolation, Mutable, LabeledMutable, Sample, SampleValidationError, auto_label, label_scope
  from nni.mutable.mutable import _mutable_equal
  from nni.nas.nn.pytorch import InputChoice, LayerChoice, MutableModule
label_desc: Use image node_id 2 for calling the _NasBench101CellFixed obj's underlying member method code with example usage: obj.build_connection_matrix(adjacency_list, num_nodes) and returns: connections