import pickle


def pickle_serialize(data):
    """
    Serialize the data into bytes using pickle

    Args:
        data: a value

    Returns:
        Returns a bytes object serialized with pickle data.
    """
    return pickle.dumps(data)