def _WriteNagFile(self, nag):
    nagfilename = SDKUpdateChecker.MakeNagFilename()
    try:
      fh = open(nagfilename, 'w')
      try:
        fh.write(nag.ToYAML())
      finally:
        fh.close()
    except (OSError, IOError), e:
      logging.error('Could not write nag file to %s. Error: %s', nagfilename, e)
A function that is optimized over nuisance parameters to conduct a
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/sdk_update_checker.py/SDKUpdateChecker._WriteNagFile--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/emplike/aft_el.py/OptAFT._opt_wtd_nuis_regress