text: import os
  import numpy as np
  cwd = os.getcwd()   # get the current working directory
  
  def create_makefile(choice_dict):
      f = open(f"{cwd}/makefile",'w')
      f.write(".PHONY = help setup test run clean environment\n\n")
      f.write(".DEFAULT_GOAL = setup\n")
      f.write("setup:\n")
  
      for batch_size in [64, 128, 1024, 4096]:
          for lr_choices in choice_dict['learning_rate']:
              f.write(f"\t@python3 main_synthetic.py --label_noise 0.1 --lr {lr_choices} --batchsize {batch_size} --epochs 30\n")
  
  
  if __name__ == "__main__":
      # creating choice dictionary
      choice_dict = {}
  
      net_choices = np.array(['MLP', 'linear', 'conv'])
      label_noise_choices = np.array([0.5, 0.2, 0.1])
      g_noise_choices = np.array([0.2, 0.1, 0.02])
      noise_sched_choices = np.array(['decay', 'fixed'])
      lr_choices = np.array([0.1, 1])
  
      choice_dict['net'] = net_choices
      choice_dict['label_noise_prob'] = label_noise_choices
      choice_dict['noise_sched'] = noise_sched_choices
      choice_dict['gaussian_noise_sigma'] = g_noise_choices
      choice_dict['learning_rate'] = lr_choices
  
      create_makefile(choice_dict)
      
  