code: def _set_app(
      ctx: click.Context, param: click.Option, value: str | None
  ) -> str | None:
      if value is None:
          return None
  
      info = ctx.ensure_object(ScriptInfo)
      info.app_import_path = value
      return value
  
imports: from __future__ import annotations
  import ast
  import importlib.metadata
  import inspect
  import os
  import platform
  import re
  import sys
  import traceback
  import typing
  from functools import update_wrapper
  from operator import itemgetter
  import click
  from click.core import ParameterSource
  from werkzeug import run_simple
  from werkzeug.serving import is_running_from_reloader
  from werkzeug.utils import import_string
  from .globals import current_app
  from .helpers import get_debug_flag
  from .helpers import get_load_dotenv
label_desc: Use image node_id 8 for calling a global function with example usage: _set_app(ctx, param, value) and returns: value, None