from typing import Any
import pickle


def smart_load(pickle_path: str) -> Any:
    """
    Loads object from the specified path using pickle.

    This is just like pickle.load, but does the opening and closing for you.

    Args:
        pickle_path: A string corresponding to the path of the pickle file.

    Returns:
        The loaded object.
    """
    with open(pickle_path, "rb") as f:
        return pickle.load(f)