code: def make_save_path(dir, classifier, suffix):
      """
      Generate the base save path for a classifier's model and metrics files,
      based on the classifier's dataset name and hyperparameters.
      """
      run_name = "".join(
          [
              c
              for c in classifier.datarun.dataset.name
              if c.isalnum() or c in (" ", "-", "_")
          ]
      ).rstrip()
      params_hash = hash_dict(classifier.hyperparameter_values)[:8]
      filename = "%s-%s.%s" % (run_name, params_hash, suffix)
      return os.path.join(dir, filename)
  
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 11 for calling a global function with example usage: make_save_path(dir, classifier, suffix) and returns: os