def loads_with_persistent_ids(str, env):
    file = BytesIO(str)
    unpickler = pickle.Unpickler(file)
    unpickler.persistent_load = partial(_persistent_load, env=env)
    return unpickler.load()
Performs a pickle loads on the given string, substituting the given
dataset/ETHPy150Open quantopian/zipline/zipline/utils/serialization_utils.py/loads_with_persistent_ids