def METHOD_NAME(node):
    obase = node.name
    if node.params.has_property("obase"):
        obase = node.params.obase
    # note, we can check for abs path here ...
    # provide an option besides usign the working_dir
    ofname = pjoin(node.context.working_dir(), obase)
    return ofname + "%s_%s_output.png" % (obase,node.state_vector.index())