code: def replica_docker_image_built():
      import docker
  
      client = docker.from_env()
      client.images.build(path=cur_dir, tag="worker-runtime")
      client.close()
      yield
      time.sleep(2)
      client = docker.from_env()
      client.containers.prune()
  
file_path: jina/tests/integration/distributed-replicas/test_distributed_replicas.py
imports: import os
  import time
  import pytest
  from docarray import Document, DocumentArray
  from jina import Flow
  from jina.helper import random_port
  from jina.orchestrate.deployments import Deployment
  from jina.parsers import set_deployment_parser
label_desc: Use image node_id 1 for calling a global function with example usage: replica_docker_image_built() without return types