code: def save_model(classifier, models_dir, model):
      """
      Save a serialized version of a Model object for a particular classifier.
      The object will be stored at a path generated from the classifier's
      attributes.
      """
      path = make_save_path(models_dir, classifier, "model")
      logger.info("Saving model in: %s" % path)
      with open(path, "wb") as f:
          pickle.dump(model, f, protocol=pickle.HIGHEST_PROTOCOL)
      return path
  
imports: from __future__ import absolute_import, unicode_literals
  import base64
  import hashlib
  import json
  import logging
  import os
  import pickle
  from builtins import str
  import numpy
  from atm.compat import getargs
label_desc: Use image node_id 12 for calling a global function with example usage: save_model(classifier, models_dir, model) and returns: path