def not_in_pycompss(decorator_name):
    """
    Retrieves the "not in PyCOMPSs scope" error message.

    :param decorator_name: Decorator name which requires the message.
    :return: String - Not in PyCOMPSs error message.
    """
    return "The " + decorator_name + \
           " decorator only works within PyCOMPSs framework."