code: def model_to_dict(model: Model):
      """Turns a Keras model into a Python dictionary
  
      :param model: Keras model instance
      :return: dictionary with model information
      """
      return dict(model=model.to_json(), weights=model.get_weights())
  
label_desc: Use image node_id 1 for calling a global function with example usage: model_to_dict(model) and returns: dict