code: def NIST_Dataset(
      DataSet,
      method="leastsq",
      start="start2",
      plot=False,
      verbose=False,
  ):
      NISTdata = ReadNistData(DataSet)
      resid, npar, dimx = Models[DataSet]
      y = NISTdata["y"]
      x = NISTdata["x"]
  
      params = Parameters()
      for i in range(npar):
          pname = f"b{i+1}"
          pval1 = NISTdata[start][i]
          params.add(pname, value=pval1)
      try:
          myfit = minimize(
              resid,
              params,
              method=method,
              args=(x,),
              kws={"y": y},
              nan_policy="raise",
          )
      except ValueError:
          if verbose:
              print("Fit failed... nans?")
          return False
      digs, buff = Compare_NIST_Results(
          DataSet, myfit, myfit.params, NISTdata
      )
      if verbose:
          print(buff)
  
      return digs > 2
  
imports: import math
  from optparse import OptionParser
  from numpy.testing import assert_allclose
  from lmfit import Parameters, minimize
  from .NISTModels import Models, ReadNistData
label_desc: Use image node_id 3 for calling a global function with example usage: NIST_Dataset(DataSet, method, start, plot, verbose) and returns: unknown, False