code: def check_metadata_service_version(obj):
      metadata = obj.metadata
      version = metadata.version()
      if version == "local":
          return
      elif version is not None and version_parse(
          version
      ) >= version_parse("2.0.2"):
          # Metaflow metadata service needs to be at least at version 2.0.2
          # since prior versions did not support strings as object ids.
          return
      else:
          obj.echo("")
          obj.echo(
              "You are running a version of the metaflow service that currently doesn't "
              "support Argo Workflows. "
          )
          obj.echo(
              "For more information on how to upgrade your service to a compatible "
              "version (>= 2.0.2), visit:"
          )
          obj.echo(
              "    https://admin-docs.metaflow.org/metaflow-on-aws/operation"
              "s-guide/metaflow-service-migration-guide",
              fg="green",
          )
          obj.echo(
              "Once you have upgraded your metadata service, please re-execute your "
              "command."
          )
          raise IncorrectMetadataServiceVersion(
              "Try again with a more recent version of metaflow service (>=2.0.2)."
          )
  
imports: import base64
  import json
  import platform
  import re
  import sys
  from hashlib import sha1
  from metaflow import JSONType, current, decorators, parameters
  from metaflow._vendor import click
  from metaflow.exception import MetaflowException, MetaflowInternalError
  from metaflow.metaflow_config import ARGO_WORKFLOWS_UI_URL, KUBERNETES_NAMESPACE, SERVICE_VERSION_CHECK, UI_URL
  from metaflow.package import MetaflowPackage
  from metaflow.plugins.aws.step_functions.production_token import load_token, new_token, store_token
  from metaflow.plugins.environment_decorator import EnvironmentDecorator
  from metaflow.plugins.kubernetes.kubernetes_decorator import KubernetesDecorator
  from metaflow.tagging_util import validate_tags
  from metaflow.util import get_username, to_bytes, to_unicode, version_parse
  from .argo_workflows import ArgoWorkflows
label_desc: Use image node_id 5 for calling a global function with example usage: check_metadata_service_version(obj) without return types