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
          return
      else:
          obj.echo("")
          obj.echo(
              "You are running a version of the metaflow service "
              "that currently doesn't support AWS Step Functions. "
          )
          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
  from metaflow._vendor import click
  from hashlib import sha1
  import json
  import re
  from metaflow import current, decorators, parameters, JSONType
  from metaflow.metaflow_config import SERVICE_VERSION_CHECK, SFN_STATE_MACHINE_PREFIX, UI_URL
  from metaflow.exception import MetaflowException, MetaflowInternalError
  from metaflow.package import MetaflowPackage
  from metaflow.plugins.aws.batch.batch_decorator import BatchDecorator
  from metaflow.tagging_util import validate_tags
  from metaflow.util import get_username, to_bytes, to_unicode, version_parse
  from .step_functions import StepFunctions
  from .production_token import load_token, store_token, new_token
label_desc: Use image node_id 4 for calling a global function with example usage: check_metadata_service_version(obj) without return types