class_docstr: Dependency decorator, for use with tasks.
  
  `@depend` lets you define a function for engine dependencies
  just like you use `apply` for tasks.
  
  
  Examples
  --------
  ::
  
      @depend(df, a,b, c=5)
      def f(m,n,p)
  
      view.apply(f, 1,2,3)
  
  will call df(a,b,c=5) on the engine, and if it returns False or
  raises an UnmetDependency error, then the task will not be run
  and another engine will be tried.
class_docstr_tok: ["Dependency","decorator",",","for","use","with","tasks",".","`","@","depend","`","lets","you","define","a","function","for","engine","dependencies","just","like","you","use","`","apply","`","for","tasks",".","Examples","--","--","--","--",":",":","@","depend","(","df",",","a",",","b",",","c=5",")","def","f","(","m",",","n",",","p",")","view.apply","(","f",",","1,2,3",")","will","call","df","(","a",",","b",",","c=5",")","on","the","engine",",","and","if","it","returns","False","or","raises","an","UnmetDependency","error",",","then","the","task","will","not","be","run","and","another","engine","will","be","tried","."]
code: def __init__(self, _wrapped_f, *args, **kwargs):
      self.f = _wrapped_f
      self.args = args
      self.kwargs = kwargs
  
file_path: ipyparallel/ipyparallel/controller/dependency.py
imports: from types import ModuleType
  from ipyparallel.client.asyncresult import AsyncResult
  from ipyparallel.error import UnmetDependency
  from ipyparallel.serialize import can
  from ipyparallel.util import interactive
label_desc: Use image node_id 1 to create a new depend object  with example: obj = depend(_wrapped_f)