code: def test_use_from_local_hub_deployment_level(
      mocker, monkeypatch, local_hub_executor, uses
  ):
      from hubble.executor.hubio import HubExecutor, HubIO
  
      mock = mocker.Mock()
  
      def _mock_fetch(
          name,
          *args,
          **kwargs,
      ):
          mock(name=name)
          return (
              HubExecutor(
                  uuid="hello",
                  name="alias_dummy",
                  tag="v0",
                  image_name="jinahub/pod.dummy_mwu_encoder",
                  md5sum=None,
                  visibility=True,
                  archive_url=None,
              ),
              False,
          )
  
      monkeypatch.setattr(HubIO, "fetch_meta", _mock_fetch)
      a = set_deployment_parser().parse_args(["--uses", uses])
      with Deployment(a):
          pass
  
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 7 for calling a global function with example usage: test_use_from_local_hub_deployment_level(mocker, monkeypatch, local_hub_executor, uses) and returns: HubExecutor,  False