class_docstr: TradingControl representing a restricted list of assets that
  cannot be ordered by the algorithm.
  
  Parameters
  ----------
  restrictions : catalyst.finance.asset_restrictions.Restrictions
      Object representing restrictions of a group of assets.
class_docstr_tok: ["TradingControl","representing","a","restricted","list","of","assets","that","can","not","be","ordered","by","the","algorithm",".","Parameters","--","--","--","--","--","restrictions",":","catalyst.finance.asset_restrictions.Restrictions","Object","representing","restrictions","of","a","group","of","assets","."]
docstr: Fail if the asset is in the restricted_list.
docstr_tok: ["Fail","if","the","asset","is","in","the","restricted_list","."]
code: def validate(
      self, asset, amount, portfolio, algo_datetime, algo_current_data
  ):
      """
      Fail if the asset is in the restricted_list.
      """
      if self.restrictions.is_restricted(asset, algo_datetime):
          self.handle_violation(asset, amount, algo_datetime)
  
imports: import abc
  import logbook
  import pandas
  from six import with_metaclass
  from catalyst.errors import AccountControlViolation, TradingControlViolation
  from catalyst.constants import LOG_LEVEL
label_desc: Use image node_id 2 for calling the RestrictedListOrder obj's underlying member method code with example usage: obj.validate(asset, amount, portfolio, algo_datetime, algo_current_data) without return types