code: def test_provenance(tmpdir):
      from nipype.interfaces.base import CommandLine
  
      tmpdir.chdir()
      ps = ProvStore()
      results = CommandLine("echo hello").run()
      ps.add_results(results)
      provn = ps.g.get_provn()
      assert "echo hello" in provn
  
imports: import os
  from nibabel.optpkg import optional_package
  import pytest
  from nipype.utils.provenance import ProvStore, safe_encode
label_desc: Use image node_id 1 for calling a global function with example usage: test_provenance(tmpdir) without return types