code: def get_completion_script(prog_name, complete_var, shell):
      cf_name = _invalid_ident_char_re.sub(
          "", prog_name.replace("-", "_")
      )
      script = _completion_scripts.get(shell, COMPLETION_SCRIPT_BASH)
      return (
          script
          % {
              "complete_func": "_{}_completion".format(cf_name),
              "script_names": prog_name,
              "autocomplete_var": complete_var,
          }
      ).strip() + ";"
  
imports: import copy
  import os
  import re
  from .core import Argument
  from .core import MultiCommand
  from .core import Option
  from .parser import split_arg_string
  from .types import Choice
  from .utils import echo
label_desc: Use image node_id 1 for calling a global function with example usage: get_completion_script(prog_name, complete_var, shell) and returns: unknown