code: def test_version(is_master, requests_mock):
      if is_master:
          count = 0
      else:
          # current version is published already
          count = 3
      requests_mock.get(
          "https://registry.hub.docker.com/v2/repositories/jinaai/jina/tags",
          text=json.dumps(
              {
                  "count": count,
                  "next": "abc",
                  "previous": "def",
                  "results": [{"a": "b", "c": "d"}],
              }
          ),
      )
      v = get_base_executor_version()
      if is_master:
          assert v == "master"
      else:
          assert v == __version__
  
file_path: jina/tests/unit/orchestrate/deployments/config/test_helper.py
imports: import json
  import os
  import pytest
  from hubble.executor import HubExecutor
  from hubble.executor.hubio import HubIO
  from jina import __version__
  from jina.orchestrate.deployments.config.helper import get_base_executor_version, get_image_name, to_compatible_name
label_desc: Use image node_id 1 for calling a global function with example usage: test_version(is_master, requests_mock) without return types