code: def main():
      base_command = (
          "python net_segment.py train -c ./demos/unet/U373.ini"
      )
      model_dir_prefix = "./models/U373"
      # note: these paths are relative to the model directory
      d_split_files = [
          "../../demos/unet/u373_d_split_%i.csv" % i for i in [1, 2]
      ]
      conditions = {
          "--do_elastic_deformation": ["True", "False"],
          "--random_flipping_axes": ["'0,1'", "-1"],
          "--dataset_split_file": d_split_files,
      }
  
      u373_experiments = ExperimentProtocol(
          base_command, conditions, model_dir_prefix=model_dir_prefix
      )
      u373_experiments.generate_commands()
      u373_experiments.to_file("./run_U373.sh")
  
      base_command = (
          "python net_segment.py train -c ./demos/unet/HeLa.ini"
      )
      model_dir_prefix = "./models/HeLa"
      # note: these paths are relative to the model directory
      d_split_files = [
          "../../demos/unet/hela_d_split_%i.csv" % i for i in [1, 2]
      ]
      conditions = {
          "--do_elastic_deformation": ["True", "False"],
          "--random_flipping_axes": ["'0,1'", "-1"],
          "--dataset_split_file": d_split_files,
      }
  
      hela_experiments = ExperimentProtocol(
          base_command, conditions, model_dir_prefix=model_dir_prefix
      )
      hela_experiments.generate_commands()
      hela_experiments.to_file("./run_hela.sh")
  
file_path: NiftyNet/demos/unet/generate_run_commands.py
imports: import itertools
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types