from typing import List
import pickle


def load_pickle(dataset_dir: str) -> List:
  """Loading (reading) a pickle file

  Parameters
  ----------
  dataset_dir: str
    It must be string file that shows the directory of the dataset.

  Returns
  -------
  List
  """
  assert isinstance(dataset_dir, str), "The dataset_dir must be a string object"

  fp = open(dataset_dir, 'rb')
  return pickle.load(fp)