code: def build_job_configs(self, args):
          
          job_configs = {}
  
          ttype = args['ttype']
          (targets_yaml, sim) = NAME_FACTORY.resolve_targetfile(args)
          if sim is not None:
              raise ValueError("Found 'sim' argument on AnalyzeROI_SG config.")
          if targets_yaml is None:
              return job_configs
  
          config_yaml = 'config.yaml'
          config_override = args.get('config')
          if is_not_null(config_override):
              config_yaml = config_override
  
          targets = load_yaml(targets_yaml)
          base_config = dict(roi_baseline=args['roi_baseline'],
                             make_plots=args['make_plots'])
  
          for target_name in targets.keys():
              name_keys = dict(target_type=ttype,
                               target_name=target_name,
                               fullpath=True)
              target_dir = NAME_FACTORY.targetdir(**name_keys)
              config_path = os.path.join(target_dir, config_yaml)
              logfile = make_nfs_path(os.path.join(
                  target_dir, "%s_%s.log" % (self.linkname, target_name)))
              job_config = base_config.copy()           
              job_config.update(dict(config=config_path,
                                     logfile=logfile))
              job_configs[target_name] = job_config
  
          return job_configs
docs: Hook to build job configurations