code: def test_log_clone_issue_407():
      # https://github.com/alkaline-ml/pmdarima/issues/407
      log = LogEndogTransformer(lmbda=10)
      res, _ = log.fit_transform([0, 10])
  
      # we swap lmbda2 and lmbda internally
      assert log.lmbda2 == 10
      assert log.lmbda == 0
  
      log2 = clone(log)
      assert log2.lmbda2 == 10
      assert log2.lmbda == 0
      res2, _ = log2.fit_transform([0, 10])
  
      assert_array_almost_equal(res, res2)
  
imports: from numpy.testing import assert_array_almost_equal
  from sklearn.base import clone
  from pmdarima.preprocessing import LogEndogTransformer
  from pmdarima.preprocessing import BoxCoxEndogTransformer
label_desc: Use image node_id 3 for calling a global function with example usage: test_log_clone_issue_407() without return types