code: def test_dm():
      inputs = "deepchem/models/tests/assets/test_dm.yaml"
      data = DFTYamlLoader()
      dataset = data.create_dataset(inputs)
      model = XCModel("lda_x", batch_size=1)
      loss = model.fit(dataset, nb_epoch=1, checkpoint_interval=1)
      assert loss < 0.008
  
imports: import deepchem
  import pytest
  import tempfile
label_desc: Use image node_id 2 for calling a global function with example usage: test_dm() without return types