code: def docker_image():
      import docker
  
      client = docker.from_env()
      client.images.build(path=os.path.join(cur_dir), tag="clitest")
      client.close()
      yield
      time.sleep(2)
      client = docker.from_env()
      client.containers.prune()
  
imports: import os
  import time
  import pytest
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: docker_image() without return types