from typing import Optional
from typing import Any
import pickle


def load_data(file_name: str) -> Optional[Any]:
    """Function for reading data from a pickle file.

    Args:
        file_name: Path for the file to be read.

    Returns:
        Data that the file contains.
    """
    with open(file_name, "rb") as input_data:
        data = pickle.load(input_data)
    return data