code: def test_flow_yaml_from_string():
      f1 = Flow.load_config("yaml/flow-v1.0-syntax.yml")
      with open(
          str(cur_dir / "yaml" / "flow-v1.0-syntax.yml"),
          encoding="utf-8",
      ) as fp:
          str_yaml = fp.read()
          assert isinstance(str_yaml, str)
          f2 = Flow.load_config(str_yaml)
          assert f1 == f2
  
      f3 = Flow.load_config(
          "!Flow\nversion: 1.0\ndeployments: [{name: ppp0, uses: _merge}, name: aaa1]"
      )
      assert "ppp0" in f3._deployment_nodes.keys()
      assert "aaa1" in f3._deployment_nodes.keys()
      assert f3.num_deployments == 2
  
imports: import os
  from pathlib import Path
  import numpy
  import pytest
  from docarray.document.generators import from_ndarray
  from jina import Executor, Flow
  from jina.enums import ProtocolType
  from jina.excepts import BadYAMLVersion
  from jina.jaml import JAML
  from jina.jaml.parsers import get_supported_versions
  from jina.parsers.flow import set_flow_parser
label_desc: Use image node_id 12 for calling a global function with example usage: test_flow_yaml_from_string() without return types