@staticmethod<EOL><INDENT>def create_ports(port, mpi, rank):<DEDENT>
if port == "<STR_LIT>" or port is None:<EOL><INDENT>ports = {}<EOL><DEDENT>else:<EOL><INDENT>port = int(port)<EOL>ports = {<EOL>"<STR_LIT>": port + <NUM_LIT:0>,<EOL>"<STR_LIT>": port + <NUM_LIT:1>,<EOL>"<STR_LIT>": port + <NUM_LIT:2><EOL>}<EOL><DEDENT>if mpi == '<STR_LIT:all>':<EOL><INDENT>for port in ports:<EOL><INDENT>ports[port] += (rank * <NUM_LIT:3>)<EOL><DEDENT><DEDENT>return ports<EOL>
create a list of ports for the current rank