def checkVariableInKnownVariables(self, variable, knownVariables):
        if variable not in knownVariables:
            assignmentLocations = self.assignedVariableUsePoints(variable)
            assert assignmentLocations, "Can't find assignment point for %s in '%s'." % (variable, str(self))

            self.raiseParseException_(
                ForaNative.FunctionParseError(
                    "can't assign to free variable " + variable,
                    assignmentLocations[0].range
                    )
                )
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/Expression.py/Expression.checkVariableInKnownVariables/original