from typing import Any
import pickle


def load_obj_pkl(path: str) -> Any:
    """Function to load and deserialize object from pickled file.

    Args:
      path: Path to object.

    Returns:
      Deserialized/un-pickled object.
    
    Rises:
          IOError, pickle.UnpicklingError: Occurred when loading/deserializing the obj.
    """
    try:
        with open(path, 'rb') as f:
            return pickle.load(f)
    except IOError as ex:
        raise ex
    except pickle.UnpicklingError as ex:
        raise ex