class_docstr: Restrictions based on a security list.
  
  Parameters
  ----------
  restrictions : zipline.utils.security_list.SecurityList
      The restrictions defined by a SecurityList
class_docstr_tok: ["Restrictions","based","on","a","security","list",".","Parameters","--","--","--","--","--","restrictions",":","zipline.utils.security_list.SecurityList","The","restrictions","defined","by","a","SecurityList"]
code: def is_restricted(self, assets, dt):
      securities_in_list = self.current_securities(dt)
      if isinstance(assets, Asset):
          return assets in securities_in_list
      return pd.Series(
          index=pd.Index(assets),
          data=vectorized_is_element(assets, securities_in_list),
      )
  
imports: import abc
  from numpy import vectorize
  from functools import partial, reduce
  import operator
  import pandas
  from six import with_metaclass, iteritems
  from collections import namedtuple
  from toolz import groupby
  from zipline.utils.enum import enum
  from zipline.utils.numpy_utils import vectorized_is_element
  from zipline.assets import Asset
label_desc: Use image node_id 2 for calling the SecurityListRestrictions obj's underlying member method code with example usage: obj.is_restricted(assets, dt) and returns: pd, unknown