class_docstr: Save trained model.
  
  For each trained model, a UUID will be generated as the `model_id`, the
  model will be saved under the `dir_path/model_id`. A `model_id` key will
  also be inserted into the result, which will visible in the return value of
  the `tune` method.
  
  :param dir_path: Path to save the models to. (default:
      `matchzoo.USER_TUNED_MODELS_DIR`)
docstr: Init.
docstr_tok: ["Init","."]
code: def __init__(
      self, dir_path: typing.Union[str, Path] = mz.USER_TUNED_MODELS_DIR
  ):
      """Init."""
      self._dir_path = dir_path
  
file_path: MatchZoo/matchzoo/auto/tuner/callbacks/save_model.py
imports: import typing
  from pathlib import Path
  import uuid
  import matchzoo
  from matchzoo.engine.base_model import BaseModel
  from .callback import Callback
label_desc: Use image node_id 1 to create a new SaveModel object from inherited base classes: Callback with example: obj = SaveModel(dir_path)