def use_completer(completer=None):
    if completer_state['available'] and completer is not None:
        readline.set_completer(completer.complete)

# Expect default to be a default string value
# Expect choices to be a list of strings
dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/templating/utils.py/use_completer/original