code: def test_load_from_dict():
      # !BaseEncoder
      # metas:
      #   name: ${{BE_TEST_NAME}}
      #   batch_size: ${{BATCH_SIZE}}
      #   pod_id: ${{pod_id}}
      #   workspace: ${{this.name}}-${{this.batch_size}}
  
      d1 = {
          "jtype": __default_executor__,
          "metas": {
              "name": "${{ BE_TEST_NAME }}",
              "workspace": "${{this.name}}",
          },
      }
  
      # !CompoundExecutor
      # components:
      #   - !BinaryPbIndexer
      #     with:
      #       index_filename: tmp1
      #     metas:
      #       name: test1
      #   - !BinaryPbIndexer
      #     with:
      #       index_filename: tmp2
      #     metas:
      #       name: test2
      # metas:
      #   name: compound1
      d = {"BE_TEST_NAME": "hello123"}
      b1 = BaseExecutor.load_config(d1, context=d)
      assert isinstance(b1, BaseExecutor)
  
      assert b1.metas.name == "hello123"
  
imports: import os
  import pytest
  import yaml
  from jina import Deployment
  from jina.constants import __default_executor__
  from jina.helper import expand_dict, expand_env_var
  from jina.jaml import JAML
  from jina.serve.executors import BaseExecutor
  from jina.serve.runtimes.gateway.gateway import BaseGateway
  from jina.serve.runtimes.gateway.http import HTTPGateway
label_desc: Use image node_id 14 for calling a global function with example usage: test_load_from_dict() without return types