code: def assert_nlff_less_or_close(
      dist, data, params1, params0, rtol=1e-7, atol=0, nlff_name="nnlf"
  ):
      nlff = getattr(dist, nlff_name)
      nlff1 = nlff(params1, data)
      nlff0 = nlff(params0, data)
      if not (nlff1 < nlff0):
          np.testing.assert_allclose(nlff1, nlff0, rtol=rtol, atol=atol)
  
imports: import os
  import numpy
  import numpy.testing
  from numpy.testing import assert_allclose, assert_equal
  import pytest
  from scipy import stats
  from scipy.optimize import differential_evolution
  from .test_continuous_basic import distcont
  from scipy.stats._distn_infrastructure import FitError
  from scipy.stats._distr_params import distdiscrete
  from scipy.stats import goodness_of_fit
label_desc: Use image node_id 12 for calling a global function with example usage: assert_nlff_less_or_close(dist, data, params1, params0, rtol, atol, nlff_name) without return types