docstr: Are we protected against overwriting an algo's portfolio?
code: def _test_set_portfolio(self):
      """
      Are we protected against overwriting an algo's portfolio?
      """
      algo = SetPortfolioAlgorithm(
          self.sid, sim_params=self.sim_params, env=self.env
      )
  
      with self.assertRaises(AttributeError):
          algo.run(self.data_portal)
  
file_path: catalyst/tests/test_exception_handling.py
imports: import pandas
  from catalyst.test_algorithms import ExceptionAlgorithm, DivByZeroAlgorithm, SetPortfolioAlgorithm
  from catalyst.testing.fixtures import WithDataPortal, WithSimParams, CatalystTestCase
label_desc: Use image node_id 3 for calling the ExceptionTestCase obj's underlying member method code with example usage: obj._test_set_portfolio() without return types