def format_output(output, format='yaml'):
    fmt = format.lower()
    try:
        return supported_formats[fmt](output)
    except __HOLE__:
        raise exc.HTTPUnsupported(_('The format(%s) is unsupported.')
                                  % fmt)
dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/common/utils.py/format_output