code: def test_flattening_with_csv_load_notask():
      fin = tempfile.NamedTemporaryFile(mode="w", delete=False)
      fin.write("smiles,endpoint\nc1ccccc1,1")
      fin.close()
      loader = dc.data.CSVLoader(
          [],
          feature_field="smiles",
          featurizer=dc.feat.ConvMolFeaturizer(
              per_atom_fragmentation=True
          ),
      )
      frag_dataset = loader.create_dataset(fin.name)
      transformer = dc.trans.FlatteningTransformer(dataset=frag_dataset)
      frag_dataset = transformer.transform(frag_dataset)
      assert len(frag_dataset) == 6
  
file_path: deepchem/deepchem/trans/tests/test_flattening.py
imports: import tempfile
  import os
  import deepchem
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_flattening_with_csv_load_notask() without return types