code: def test_save_dynamic_batching_config(tmpdir):
      TMPDIR: Path = Path(tmpdir)
      f = Flow(port=12345).add(
          uses=MyExecutor,
          name="exec0",
          uses_dynamic_batching={
              "/foo": {"preferred_batch_size": 2, "timeout": 4000}
          },
      )
      f.save_config(str(TMPDIR / "flow0.yaml"))
  
      f1 = Flow.load_config(str(TMPDIR / "flow0.yaml"))
      assert (
          f._deployment_nodes["exec0"].args.uses_dynamic_batching
          == f1._deployment_nodes["exec0"].args.uses_dynamic_batching
      )
  
file_path: jina/tests/integration/dynamic_batching/test_dynamic_batching_config.py
imports: import os
  from pathlib import Path
  from jina import Document, DocumentArray, Executor, Flow, dynamic_batching, requests
label_desc: Use image node_id 1 for calling a global function with example usage: test_save_dynamic_batching_config(tmpdir) without return types