<s> from vistrails . core . modules . module_descriptor import ModuleDescriptor <EOL> from vistrails . core . modules . vistrails_module import Module <EOL> from vistrails . core . upgradeworkflow import UpgradeModuleRemap <EOL> class A ( Module ) : <EOL> _output_ports = [ ( '<STR_LIT:result>' , '<STR_LIT>' ) ] <EOL> def compute ( self ) : <EOL> self . set_output ( '<STR_LIT:result>' , '<STR_LIT:A>' ) <EOL> _modules = [ A ] <EOL> _upgrades = { '<STR_LIT:A>' : [ UpgradeModuleRemap ( <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> new_module = ModuleDescriptor ( <EOL> package = '<STR_LIT>' , <EOL> name = '<STR_LIT:B>' , <EOL> namespace = '<STR_LIT>' , <EOL> package_version = '<STR_LIT>' ) ) ] } </s>
