code: def _adjancency_matrix_from_architecture(architecture, vertices):
      matrix = np.zeros((vertices, vertices), dtype=bool)  # type: ignore
      for i in range(1, vertices):
          for k in architecture["input{}".format(i)]:
              matrix[k, i] = 1
      return matrix
  
file_path: nni/nni/nas/benchmark/nasbench101/graph_util.py
imports: import hashlib
  import numpy
  from .constants import INPUT, LABEL2ID, OUTPUT
label_desc: Use image node_id 2 for calling a global function with example usage: _adjancency_matrix_from_architecture(architecture, vertices) and returns: matrix