code: def test_dynamic_polling_overwrite_default_config(polling):
      endpoint_polling = {"/search": PollingType.ANY, "*": polling}
      args = set_deployment_parser().parse_args(
          [
              "--uses",
              "DynamicPollingExecutorDefaultNames",
              "--shards",
              str(2),
              "--polling",
              json.dumps(endpoint_polling),
          ]
      )
      pod = Deployment(args, include_gateway=False)
  
      with pod:
          response = send_request_sync(
              _create_test_data_message(endpoint="/search"),
              f"{pod.head_args.host}:{pod.head_args.port[0]}",
              endpoint="/search",
          )
          assert (
              len(response.docs) == 1 + 1
          )  # 1 source doc + 1 doc added by the one shard
  
          response = send_request_sync(
              _create_test_data_message(endpoint="/index"),
              f"{pod.head_args.host}:{pod.head_args.port[0]}",
              endpoint="/index",
          )
          assert len(response.docs) == 1 + 1
  
imports: import json
  import os
  import pytest
  import yaml
  from jina import Document, DocumentArray, Executor, requests
  from jina.clients.request import request_generator
  from jina.constants import __default_executor__, __default_host__
  from jina.enums import PollingType
  from jina.excepts import RuntimeFailToStart
  from jina.orchestrate.deployments import Deployment
  from jina.parsers import set_deployment_parser, set_gateway_parser
  from jina.serve.networking.utils import send_request_sync
  from tests.unit.test_helper import MyDummyExecutor
label_desc: Use image node_id 24 for calling a global function with example usage: test_dynamic_polling_overwrite_default_config(polling) without return types