code: def _external_deployment_args_docker(num_shards, port=None):
      args = [
          "--uses",
          "docker://worker-runtime",
          "--name",
          "external_real",
          "--port",
          str(port) if port else str(random_port()),
          "--host-in",
          "0.0.0.0",
          "--shards",
          str(num_shards),
          "--polling",
          "all",
      ]
      return set_deployment_parser().parse_args(args)
  
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 4 for calling a global function with example usage: _external_deployment_args_docker(num_shards, port) and returns: set_deployment_parser