code: def publish(
      runs=None,
      dest=None,
      template=None,
      index_template=None,
      files=False,
      all_files=False,
      include_links=False,
      include_batch=False,
      no_md5=False,
      refresh_index=False,
      cwd=".",
      guild_home=None,
      **kw,
  ):
      from guild import click_util
      from guild.commands import publish_impl
  
      args = click_util.Args(
          runs=_run_ids(runs),
          dest=dest,
          template=template,
          index_template=index_template,
          files=files,
          all_files=all_files,
          include_links=include_links,
          include_batch=include_batch,
          no_md5=no_md5,
          refresh_index=refresh_index,
          yes=True,
      )
      _apply_runs_filters(kw, args)
      _apply_remote(kw, args)
      _assert_empty_kw(kw, "publish()")
      with Env(cwd, guild_home):
          publish_impl.publish(args, None)
  
imports: import os
  import subprocess
  import sys
label_desc: Use image node_id 22 for calling a global function with example usage: publish(runs, dest, template, index_template, files, all_files, include_links, include_batch, no_md5, refresh_index, cwd, guild_home) without return types