code: def test_flow_default_custom_polling_endpoints(polling):
      custom_polling_config = {
          "/custom": "ALL",
          "/search": "ANY",
          "*": polling,
      }
      f = Flow().add(
          uses=DynamicPollingExecutorDefaultNames,
          shards=2,
          polling=custom_polling_config,
      )
  
      with f:
          docs_index = f.post(on="/index", inputs=[Document(text="1")])
          docs_search = f.post(
              on="/search", inputs=[Document(text="1")]
          )
          docs_custom = f.post(
              on="/custom", inputs=[Document(text="1")]
          )
      assert len(docs_index) == 2
      assert len(docs_search) == 2
      assert len(docs_custom) == 3
  
imports: from docarray import Document, DocumentArray
  from jina import Executor, Flow, requests
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_flow_default_custom_polling_endpoints(polling) without return types