defaparse_params():""" SEE: https://docs.python.org/3/library/argparse.html :return: """parser=argparse.ArgumentParser()parser.add_argument('--nb_samples',type=int,required=False,default=NB_SAMPLES,help='number of samples to be generated in each dataset')parser.add_argument('--nb_patterns',type=int,required=False,default=NB_ATM_PATTERNS,help='number of atom. patterns in created dictionary')parser.add_argument('--path_out',type=str,required=False,default=DEFAULT_PATH_APD,help='path to the datasets ending ''with name of datasets parent folder')parser.add_argument('--image_size',type=int,required=False,nargs='+',default=IMAGE_SIZE[DATASET_TYPE],help='dimensions of generated images in axis Z, X, Y')parser.add_argument('--nb_jobs',type=int,required=False,default=NB_THREADS,help='number of processes in parallel')args=parser.parse_args()assertlen(args.image_size)==2orlen(args.image_size)==3args.path_out=os.path.abspath(os.path.expanduser(args.path_out))returnargs