code: def _publish(args, ctx):
      dest = args.dest or publishlib.DEFAULT_DEST_HOME
      preview = (
          f"You are about to publish the following run(s) to {dest}:"
      )
      confirm = "Continue?"
      no_runs = "No runs to publish."
  
      def publish_f(runs, formatted):
          _publish_runs(runs, formatted, args)
          _refresh_index(args, no_dest=True)
  
      def select_runs_f(args, ctx, default_runs_arg):
          runs = runs_impl.runs_op_selected(args, ctx, default_runs_arg)
          return [
              run
              for run in runs
              if args.include_batch or not batch_util.is_batch(run)
          ]
  
      runs_impl.runs_op(
          args,
          ctx,
          preview,
          confirm,
          no_runs,
          publish_f,
          runs_impl.ALL_RUNS_ARG,
          True,
          select_runs_f,
      )
  
file_path: guildai/guild/commands/publish_impl.py
imports: import os
  from guild import batch_util
  from guild import cli
  from guild import config
  from guild import publish
  from guild import util
  from .None import runs_impl
label_desc: Use image node_id 2 for calling a global function with example usage: _publish(args, ctx) and returns: unknown