import pickle


def save_object(
    obj: object,
    file_name: str,
    file_extension: str = ".pickle",
):
    file_path = file_name + file_extension
    with open(file_path, "wb") as f:
        pickle.dump(
            obj=obj,
            file=f,
            protocol=pickle.HIGHEST_PROTOCOL,
        )


def load_object(
    file_name: str,
    file_extension: str = ".pickle",
) -> object:
    file_path = file_name + file_extension
    with open(file_path, "rb") as f:
        obj = pickle.load(file=f)

    return obj

4d0a9ed56615cf1627220d9283908a5ecce22df2
<mask token>

<mask token>


def load_object(file_name: str, file_extension: str='.pickle') ->object:
    file_path = file_name + file_extension
    with open(file_path, 'rb') as f:
        obj = pickle.load(file=f)
    return obj

<mask token>


def save_object(obj: object, file_name: str, file_extension: str='.pickle'):
    file_path = file_name + file_extension
    with open(file_path, 'wb') as f:
        pickle.dump(obj=obj, file=f, protocol=pickle.HIGHEST_PROTOCOL)


def load_object(file_name: str, file_extension: str='.pickle') ->object:
    file_path = file_name + file_extension
    with open(file_path, 'rb') as f:
        obj = pickle.load(file=f)
    return obj

import pickle


def save_object(obj: object, file_name: str, file_extension: str='.pickle'):
    file_path = file_name + file_extension
    with open(file_path, 'wb') as f:
        pickle.dump(obj=obj, file=f, protocol=pickle.HIGHEST_PROTOCOL)


def load_object(file_name: str, file_extension: str='.pickle') ->object:
    file_path = file_name + file_extension
    with open(file_path, 'rb') as f:
        obj = pickle.load(file=f)
    return obj

import pickle


def save_object(
    obj: object,
    file_name: str,
    file_extension: str = ".pickle",
):
    file_path = file_name + file_extension
    with open(file_path, "wb") as f:
        pickle.dump(
            obj=obj,
            file=f,
            protocol=pickle.HIGHEST_PROTOCOL,
        )


def load_object(
    file_name: str,
    file_extension: str = ".pickle",
) -> object:
    file_path = file_name + file_extension
    with open(file_path, "rb") as f:
        obj = pickle.load(file=f)

    return obj
