fun perform() { }
Perform the operation by calling a function in the Python script . This method adapts each of the inputs into Python objects , calls the Python function , and then converts the outputs of the function back into Java objects and assigns them to the outputs array . The Python function should return a tuple , list , or other sequence containing the outputs . If there is only one output , it can just return a value . Either way , the number of inputs and outputs should match up with the number of parameters and return values of the function .