code: def loads_with_persistent_ids(str, env):
      """
      Performs a pickle loads on the given string, substituting the given
      TradingEnvironment in to any tokenized representations of a
      TradingEnvironment or AssetFinder.
  
      Parameters
      ----------
      str : String
          The string representation of the object to be unpickled.
      env : TradingEnvironment
          The TradingEnvironment to be inserted to the unpickled object.
  
      Returns
      -------
      obj
         An unpickled object formed from the parameter 'str'.
      """
      file = BytesIO(str)
      unpickler = pickle.Unpickler(file)
      unpickler.persistent_load = partial(_persistent_load, env=env)
      return unpickler.load()
  
file_path: catalyst/catalyst/utils/serialization_utils.py
imports: from six import BytesIO
  import pickle
  from functools import partial
  from catalyst.assets import AssetFinder
  from catalyst.finance.trading import TradingEnvironment
label_desc: Use image node_id 4 for calling a global function with example usage: loads_with_persistent_ids(str, env) and returns: unpickler