code: def generate(
      name, fname, x="x", y="y", out="out", kwargs=None, decimal=7
  ):
      kwargs = {} if kwargs is None else kwargs
      data = np.genfromtxt(
          os.path.join(rpath, fname), delimiter=",", names=True
      )
      assert_almost_equal.description = name
      if callable(kwargs):
          kwargs = kwargs(data)
      result = lowess(data[y], data[x], **kwargs)
      expect = np.array([data[x], data[out]]).T
      assert_almost_equal(result, expect, decimal)
  
imports: import os
  import numpy
  from numpy.testing import assert_, assert_allclose, assert_almost_equal, assert_equal, assert_raises
  import pytest
  from statsmodels.nonparametric.smoothers_lowess import lowess
  import pandas
label_desc: Use image node_id 4 for calling the TestLowess obj's underlying member method code with example usage: obj.generate(name, fname, x, y, out, kwargs, decimal) without return types