code: def load_preprocessor(
      dirpath: typing.Union[str, Path]
  ) -> "mz.DataPack":
      """
      Load the fitted `context`. The reverse function of :meth:`save`.
  
      :param dirpath: directory path of the saved model.
      :return: a :class:`DSSMPreprocessor` instance.
      """
      dirpath = Path(dirpath)
  
      data_file_path = dirpath.joinpath(BasePreprocessor.DATA_FILENAME)
      return dill.load(open(data_file_path, "rb"))
  
file_path: MatchZoo/matchzoo/engine/base_preprocessor.py
imports: import abc
  import functools
  import typing
  from pathlib import Path
  import dill
  import matchzoo
label_desc: Use image node_id 2 for calling a global function with example usage: load_preprocessor(dirpath) and returns: dill