code: def do_complete(cli, prog_name, include_descriptions):
      cwords = split_arg_string(os.environ["COMP_WORDS"])
      cword = int(os.environ["COMP_CWORD"])
      args = cwords[1:cword]
      try:
          incomplete = cwords[cword]
      except IndexError:
          incomplete = ""
  
      for item in get_choices(cli, prog_name, args, incomplete):
          echo(item[0])
          if include_descriptions:
              # ZSH has trouble dealing with empty array parameters when
              # returned from commands, use '_' to indicate no description
              # is present.
              echo(item[1] if item[1] else "_")
  
      return True
  
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 10 for calling a global function with example usage: do_complete(cli, prog_name, include_descriptions) and returns: True