code: def load_pickled_model(filename, dirname=None):
      
      if dirname is None:
          pkg_filename = pkgutil.get_loader('dragnet').get_filename('dragnet')
          pkg_dirname = os.path.dirname(pkg_filename)
          dirname = os.path.join(pkg_dirname, 'pickled_models', model_path)
      filepath = os.path.join(dirname, filename)
      return joblib.load(filepath)
docs: Load a pickled ``Extractor`` model from disk.
  
      Args:
          filename (str): Name of pickled model file under ``dirname``.
          dirname (str): Name of directory on disk containing the pickled model.
              If None, dragnet's default pickled model directory is used:
              /path/to/dragnet/pickled_models/[PY_VERSION]_[SKLEARN_VERSION]
  
      Returns:
          :class:`dragnet.extractor.Extractor`