code: def test_inputs_removal(tmpdir):
      file1 = tmpdir.join("file1.txt")
      file1.write("dummy_file")
      n1 = pe.Node(
          UtilsTestInterface(),
          base_dir=tmpdir.strpath,
          name="testinputs",
      )
      n1.inputs.in_file = file1.strpath
      n1.config = {"execution": {"keep_inputs": True}}
      n1.config = merge_dict(deepcopy(config._sections), n1.config)
      n1.run()
      assert tmpdir.join(n1.name, "file1.txt").check()
      n1.inputs.in_file = file1.strpath
      n1.config = {"execution": {"keep_inputs": False}}
      n1.config = merge_dict(deepcopy(config._sections), n1.config)
      n1.overwrite = True
      n1.run()
      assert not tmpdir.join(n1.name, "file1.txt").check()
  
imports: import os
  from copy import deepcopy
  import pytest
  from ....None import config
  from ....interfaces import utility
  from ....interfaces import base
  from ...None import engine
  from ..utils import merge_dict
  from .test_base import EngineTestInterface
  from .test_utils import UtilsTestInterface
label_desc: Use image node_id 9 for calling a global function with example usage: test_inputs_removal(tmpdir) without return types