code: def save_model(model, weights_file, params_file):
      with open(params_file, "w") as f:
          params = model.to_json()
          json.dump(json.loads(params), f, sort_keys=True, indent=4)
          model.save_weights(weights_file)
  
file_path: ktrain/ktrain/text/ner/anago/models.py
imports: from ....None import utils
  from ....imports import *
label_desc: Use image node_id 1 for calling a global function with example usage: save_model(model, weights_file, params_file) without return types