code: def test_load_save_yml(tmp_path):
      m = Executor.load_config(y)
      m.save_config(os.path.join(tmp_path, "a.yml"))
  
      assert m.bar == "hello"
      assert m.bar2 == 1
      assert m.metas.name == "my-awesomeness"
      for k in ("/default", "/foo_endpoint", "/random_endpoint"):
          assert k in m.requests
  
file_path: jina/tests/integration/v2_api/test_yaml_dump_load.py
imports: import os
  import pytest
  from jina import Client, Document, Executor, Flow, requests
  from jina.helper import random_port
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_save_yml(tmp_path) without return types