def configure_port_input_data(obj, port, data):
    if is_old_pipeline():
        obj.set_input(port, data)
    else:
        obj.set_input_data(port, data)
Configure the input data for vtk pipeline object obj at port.
dataset/ETHPy150Open enthought/mayavi/tvtk/common.py/configure_port_input_data