class_docstr: A graph consists of connected Blocks, or Heads.
  
  # Arguments
      inputs: A list of input node(s) for the Graph.
      outputs: A list of output node(s) for the Graph.
docstr: Build the HyperModel into a Keras Model.
docstr_tok: ["Build","the","HyperModel","into","a","Keras","Model","."]
code: def build(self, hp):
      """Build the HyperModel into a Keras Model."""
      self.compile()
      keras_nodes = {}
      keras_input_nodes = []
      for node in self.inputs:
          node_id = self._node_to_id[node]
          input_node = node.build_node(hp)
          output_node = node.build(hp, input_node)
          keras_input_nodes.append(input_node)
          keras_nodes[node_id] = output_node
      for block in self.blocks:
          temp_inputs = [
              keras_nodes[self._node_to_id[input_node]]
              for input_node in block.inputs
          ]
          outputs = block.build(hp, inputs=temp_inputs)
          outputs = nest.flatten(outputs)
          for output_node, real_output_node in zip(
              block.outputs, outputs
          ):
              keras_nodes[
                  self._node_to_id[output_node]
              ] = real_output_node
      model = keras.Model(
          keras_input_nodes,
          [
              keras_nodes[self._node_to_id[output_node]]
              for output_node in self.outputs
          ],
      )
  
      return self._compile_keras_model(hp, model)
  
imports: import keras_tuner
  from tensorflow import keras
  from tensorflow import nest
  from autokeras import blocks
  from autokeras import keras_layers
  from autokeras import nodes
  from autokeras.engine import head
  from autokeras.engine import serializable
  from autokeras.utils import io_utils
label_desc: Use image node_id 9 for calling the Graph obj's underlying member method code with example usage: obj.build(hp) and returns: self