code: def assert_many_restrictions(self, rl, assets, expected, dt):
      assert_series_equal(
          rl.is_restricted(assets, dt),
          pd.Series(index=pd.Index(assets), data=expected),
      )
  
imports: import pandas
  from pandas.util.testing import assert_series_equal
  from six import iteritems
  from functools import partial
  from toolz import groupby
  from catalyst.finance.asset_restrictions import RESTRICTION_STATES, Restriction, HistoricalRestrictions, StaticRestrictions, SecurityListRestrictions, NoRestrictions, _UnionRestrictions
  from catalyst.testing import parameter_space
  from catalyst.testing.fixtures import WithDataPortal, CatalystTestCase
label_desc: Use image node_id 5 for calling the RestrictionsTestCase obj's underlying member method code with example usage: obj.assert_many_restrictions(rl, assets, expected, dt) without return types