code: def test_raise_exception_invalid_executor(tmpdir):
      from jina.excepts import NoContainerizedError
  
      with pytest.raises(NoContainerizedError):
          f = Flow().add(uses="A")
          f.to_kubernetes_yaml(str(tmpdir))
  
file_path: jina/tests/unit/orchestrate/flow/flow-construct/test_flow_to_k8s_yaml.py
imports: import json
  import os
  import pytest
  import yaml
  from jina import Flow
  from jina.serve.networking import GrpcConnectionPool
label_desc: Use image node_id 3 for calling a global function with example usage: test_raise_exception_invalid_executor(tmpdir) without return types