The task "Eval code" lets you enter python code directly.
Script data Script will be evaluated and executed on the target render node, and will access to context like any other task.