code: def filewriter_exec_docker_image_built():
      import docker
  
      client = docker.from_env()
      client.images.build(
          path=os.path.join(cur_dir, "filewriter-exec/"),
          tag="filewriter-exec",
      )
      client.close()
      yield
      time.sleep(2)
      client = docker.from_env()
      client.containers.prune()
  
file_path: jina/tests/integration/docker_volumes/test_volumes_in_flow.py
imports: import os
  import time
  import pytest
  from docarray import Document
  from jina import Flow
  from jina.constants import __cache_path__
label_desc: Use image node_id 1 for calling a global function with example usage: filewriter_exec_docker_image_built() without return types