code: def _install_completion_script_to_zsh_init(script_path, args):
      init_script = args.shell_init or "~/.zshrc"
      user_dir_script_path = _user_dir_path(script_path)
      sentinel = f". {user_dir_script_path}"
      lines = [
          "[[ -s {script} ]] && . {script}  # Enable completion for guild".format(
              script=user_dir_script_path
          )
      ]
      _gen_install_completion_script_to_init(
          init_script, sentinel, lines
      )
  
imports: import glob
  import logging
  import os
  import shutil
  import sys
  import guild
  from guild import cli
  from guild import config
  from guild import util
label_desc: Use image node_id 8 for calling a global function with example usage: _install_completion_script_to_zsh_init(script_path, args) without return types