code: def save_model_checkpoint(model, model_path):
      """The API for saving the model.
  
      Parameters
      ----------
      model : class
          The model to be saved.
      model_path : str
          The saved model path.
  
      Returns
      -------
      """
      os.makedirs(os.path.dirname(model_path), exist_ok=True)
      torch.save(model, model_path)
      print("Saved model to {}".format(model_path))
  
imports: import os
  import pickle
  from collections import OrderedDict
  import numpy
  import torch
  import torch.nn
  import yaml
  from scipy import sparse
  from sklearn import preprocessing
  from graph4nlp.pytorch.data.data import GraphData
label_desc: Use image node_id 11 for calling a global function with example usage: save_model_checkpoint(model, model_path) without return types