code: def local_hub_executor(tmpdir):
      from hubble.executor import HubExecutor, helper, hubapi
  
      pkg_path = Path(__file__).parent / "dummyhub"
      stream_data = helper.archive_package(pkg_path)
      with open(tmpdir / "dummy_test.zip", "wb") as temp_zip_file:
          temp_zip_file.write(stream_data.getvalue())
  
      hubapi.install_local(
          Path(tmpdir) / "dummy_test.zip",
          HubExecutor(uuid="hello", tag="v0"),
      )
  
file_path: jina/tests/integration/hub_usage/test_hub_usage.py
imports: import os
  from pathlib import Path
  import pytest
  from jina import Flow
  from jina.excepts import RuntimeFailToStart
  from jina.orchestrate.deployments import Deployment
  from jina.parsers import set_deployment_parser
  from jina.serve.executors import BaseExecutor
label_desc: Use image node_id 6 for calling a global function with example usage: local_hub_executor(tmpdir) without return types