code: def make_flow(
      obj,
      token,
      name,
      tags,
      namespace,
      max_workers,
      workflow_timeout,
      is_project,
  ):
      if obj.flow_datastore.TYPE != "s3":
          raise MetaflowException(
              "AWS Step Functions requires --datastore=s3."
          )
  
      # Attach AWS Batch decorator to the flow
      decorators._attach_decorators(obj.flow, [BatchDecorator.name])
      decorators._init_step_decorators(
          obj.flow,
          obj.graph,
          obj.environment,
          obj.flow_datastore,
          obj.logger,
      )
  
      obj.package = MetaflowPackage(
          obj.flow, obj.environment, obj.echo, obj.package_suffixes
      )
      package_url, package_sha = obj.flow_datastore.save_data(
          [obj.package.blob], len_hint=1
      )[0]
  
      return StepFunctions(
          name,
          obj.graph,
          obj.flow,
          package_sha,
          package_url,
          token,
          obj.metadata,
          obj.flow_datastore,
          obj.environment,
          obj.event_logger,
          obj.monitor,
          tags=tags,
          namespace=namespace,
          max_workers=max_workers,
          username=get_username(),
          workflow_timeout=workflow_timeout,
          is_project=is_project,
      )
  
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 6 for calling a global function with example usage: make_flow(obj, token, name, tags, namespace, max_workers, workflow_timeout, is_project) and returns: StepFunctions