code: def load_data_pack(dirpath: typing.Union[str, Path]) -> DataPack:
      """
      Load a :class:`DataPack`. The reverse function of :meth:`save`.
  
      :param dirpath: directory path of the saved model.
      :return: a :class:`DataPack` instance.
      """
      dirpath = Path(dirpath)
  
      data_file_path = dirpath.joinpath(DataPack.DATA_FILENAME)
      dp = dill.load(open(data_file_path, "rb"))
  
      return dp
  
imports: import typing
  import inspect
  from pathlib import Path
  import functools
  import dill
  from tqdm import tqdm
  import numpy
  import pandas
  import matchzoo
label_desc: Use image node_id 2 for calling a global function with example usage: load_data_pack(dirpath) and returns: dp