code: def test_slow_executor_close(tmpdir):
      with Flow().add(
          uses={
              "jtype": "SlowExecutor",
              "with": {},
              "metas": {"workspace": str(tmpdir)},
          }
      ) as f:
          pass
  
      assert os.path.exists(os.path.join(tmpdir, "test"))
  
file_path: jina/tests/unit/orchestrate/flow/flow-construct/test_slow_executor_shutdown.py
imports: import os
  import time
  import pytest
  from jina import Flow, Executor
label_desc: Use image node_id 1 for calling a global function with example usage: test_slow_executor_close(tmpdir) without return types