def METHOD_NAME(self, *inputs):
    def as_variable(x):
        assert isinstance(x, Variable)
        return x
    assert len(inputs) == self.nin
    inputs = list(map(as_variable, inputs))
    for input in inputs:
        if not isinstance(input.type, MyType):
            raise Exception("Error 1")
    outputs = [MyType(self.name + "_R")()]
    return Apply(self, inputs, outputs)