def get_selinuxinfo(ns):
    tf = TableFormatter(stdout, 0, True, {0: FIRST_COLUMN_MIN_SIZE})

    try:
        selinux = get_single_instance(ns, 'LMI_SELinuxService')
    except Exception:
        result = [(get_colored_string('error:', RED_COLOR),
                    'Missing class LMI_SELinuxService. Is openlmi-selinux package installed on the server?')]
        tf.produce_output(result)
        return []

    if selinux.SELinuxState == 0:
        selinux_str = 'disabled'
    else:
        selinux_str = 'enabled (%s)' % \
            ns.LMI_SELinuxService.SELinuxStateValues.value_name(selinux.SELinuxState).lower()

    tf.produce_output([('SELinux:', selinux_str)])
    return []
A version of Python's urllib.urlencode() function that can operate on
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/system/lmi/scripts/system/__init__.py/get_selinuxinfo--crossover with--dataset/ETHPy150Open letolab/airy/airy/utils/http.py/urlencode