code: def test_log_trans_1D():
      """Test in 1D case without explicit task variable."""
      X = np.random.rand(10, 10)
      y = np.random.rand(10)
      dataset = dc.data.NumpyDataset(X, y)
      trans = dc.trans.LogTransformer(transform_y=True)
      log_dataset = trans.transform(dataset)
      assert np.isclose(np.log(y + 1), log_dataset.y).all()
      untrans_y = trans.untransform(log_dataset.y)
      assert np.isclose(untrans_y, y).all()
  
file_path: deepchem/deepchem/trans/tests/test_log_transform.py
imports: import os
  import deepchem
  import pandas
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_log_trans_1D() without return types