code: def test_iterate_data(self):
      with warnings.catch_warnings(record=True) as w:
          warnings.simplefilter("ignore", PerformanceWarning)
          warnings.simplefilter("default", ZiplineDeprecationWarning)
  
          algo = self.create_algo(simple_algo)
          algo.run()
  
          self.assertEqual(4, len(w))
  
          line_nos = [warning.lineno for warning in w]
          self.assertEqual(4, len(set(line_nos)))
  
          for idx, warning in enumerate(w):
              self.assertEqual(
                  ZiplineDeprecationWarning, warning.category
              )
  
              self.assertEqual("<string>", warning.filename)
              self.assertEqual(line_nos[idx], warning.lineno)
  
              if idx < 2:
                  self.assertEqual(
                      "Checking whether an asset is in data is deprecated.",
                      str(warning.message),
                  )
              else:
                  self.assertEqual(
                      "Iterating over the assets in `data` is deprecated.",
                      str(warning.message),
                  )
  
imports: import warnings
  from mock import patch
  import numpy
  import pandas
  from pandas.core.common import PerformanceWarning
  from zipline.finance.trading import SimulationParameters
  from zipline.testing import MockDailyBarReader, create_daily_df_for_asset, create_minute_df_for_asset, str_to_seconds
  from zipline.testing.fixtures import WithCreateBarData, WithMakeAlgo, ZiplineTestCase
  from zipline.zipline_warnings import ZiplineDeprecationWarning
label_desc: Use image node_id 10 for calling the TestAPIShim obj's underlying member method code with example usage: obj.test_iterate_data() without return types