code: def _install_completion_script_to_fish_init(script_path, args):
      init_script = (
          args.shell_init or "~/.config/fish/completions/guild.fish"
      )
      user_dir_script_path = _user_dir_path(script_path)
      sentinel = f". {user_dir_script_path}"
      lines = [
          "test -s {script} ;and . {script}".format(
              script=user_dir_script_path
          )
      ]
      _gen_install_completion_script_to_init(
          init_script, sentinel, lines, backup=False
      )
  
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 9 for calling a global function with example usage: _install_completion_script_to_fish_init(script_path, args) without return types