code: def verify_client_version(
      client_config: ClientConfig, version: Version
  ):
      version_with_patch_0 = Version(
          replace_patch_version(str(version))
      )
      if (
          client_config.version_info.min_compatible
          and client_config.version_info.min_compatible > version
      ):
          raise NeptuneClientUpgradeRequiredError(
              version,
              min_version=client_config.version_info.min_compatible,
          )
      if (
          client_config.version_info.max_compatible
          and client_config.version_info.max_compatible
          < version_with_patch_0
      ):
          raise NeptuneClientUpgradeRequiredError(
              version,
              max_version=client_config.version_info.max_compatible,
          )
      if (
          client_config.version_info.min_recommended
          and client_config.version_info.min_recommended > version
      ):
          logger.warning(
              "WARNING: Your version of the Neptune client library (%s) is deprecated,"
              " and soon will no longer be supported by the Neptune server."
              " We recommend upgrading to at least version %s.",
              version,
              client_config.version_info.min_recommended,
          )
  
imports: import dataclasses
  import logging
  import os
  import socket
  from functools import lru_cache, wraps
  from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Mapping, Optional, Text
  from urllib.parse import urljoin, urlparse
  import urllib3
  from bravado.client import SwaggerClient
  from bravado.exception import HTTPError
  from bravado.http_client import HttpClient
  from bravado.requests_client import RequestsResponseAdapter
  from bravado_core.formatter import SwaggerFormat
  from packaging.version import Version
  from requests import Response, Session
  from neptune.common.backends.utils import with_api_exceptions_handler
  from neptune.envs import NEPTUNE_ALLOW_SELF_SIGNED_CERTIFICATE
  from neptune.exceptions import CannotResolveHostname, MetadataInconsistency, NeptuneClientUpgradeRequiredError, NeptuneFeatureNotAvailableException
  from neptune.internal.backends.api_model import ClientConfig
  from neptune.internal.backends.swagger_client_wrapper import SwaggerClientWrapper
  from neptune.internal.operation import CopyAttribute, Operation
  from neptune.internal.utils import replace_patch_version
  from neptune.internal.utils.logger import logger
label_desc: Use image node_id 3 for calling a global function with example usage: verify_client_version(client_config, version) without return types