code: def __init__(self, model):
      # sanity check.
      if not (
          type(model) == _keras.models.Sequential
          or type(model) == _keras.models.Model
      ):
          raise TypeError(
              "Keras layer of type %s is not supported." % type(model)
          )
      super(Keras2Graph, self).__init__(model)
      self.model = model
  
file_path: MMdnn/mmdnn/conversion/keras/keras2_graph.py
imports: import os
  import keras
  from mmdnn.conversion.common.DataStructure.graph import GraphNode, Graph
label_desc: Use image node_id 1 to create a new Keras2Graph object from inherited base classes: Graph with example: obj = Keras2Graph(model)