import pickle


def serialize(src):
    """
    The default serialization method

    In non-special cases, this method is used, protocol=2

    Parameters
    ----------
    src: object
        data to serialize

    Returns
    -------

    """
    return pickle.dumps(src, protocol=2)