def setup(self):
if not self.networks():<EOL><INDENT>for _ in range(self.practice_repeats):<EOL><INDENT>network = self.create_network()<EOL>network.role = "<STR_LIT>"<EOL>self.session.add(network)<EOL><DEDENT>for _ in range(self.experiment_repeats):<EOL><INDENT>network = self.create_network()<EOL>network.role = "<STR_LIT>"<EOL>self.session.add(network)<EOL><DEDENT>self.session.commit()<EOL><DEDENT>
Create the networks if they don't already exist.