def METHOD_NAME(self, node):
    if engine.with_osl():
        from . import osl
        osl.METHOD_NAME(node, self.report)
    else:
        self.report({'ERROR'}, "OSL support disabled in this build")