def METHOD_NAME(params):
    """
    Verify selinux context
    """
    sec_opt = None
    sec_cxt = None
    sec_cxt_sorted = None
    # The 'dynamic' is default security option and the selinux
    # category set is different each time
    options = params.get("lvsb_security_options1", "dynamic")
    cmd_outputs = params['lvsb_result']
    logging.debug("The selinux context '%s' from command output", cmd_outputs)
    # e.g static,label=system_u:system_r:svirt_lxc_net_t:s0:c412,c355
    if "=" in options:
        # To get real security option, it may be 'dynamic' or 'static'
        sec_opt = options.split("=")[0].split(",")[0]
        # To get selinux context
        sec_cxt = options.split("=")[1]
        logging.debug("The selinux context '%s' from input", sec_cxt)
    # The uri looks like '$hypervisor:///', the 'hypervisor' may be
    # LXC, QEMU, XEN, etc and 'lxc' is a default
    uri = params.get('lvsb_uri', 'lxc').upper().split(':')[0]
    expected_selinux_label = _selinux_label.get(uri)
    if sec_opt == "dynamic" or options == "dynamic":
        # The base context format is USER:ROLE:TYPE:LEVEL, and the 'LEVEL'
        # may include category set, which is randomly generated by sandbox
        patterns = r"%s:c\d*,c\d*" % expected_selinux_label
        match = re.search(patterns, cmd_outputs)
        if expected_selinux_label and cmd_outputs and match:
            logging.info("The selinux label '%s' is expected", cmd_outputs)
            return True
        else:
            return False
    if sec_opt == "static":
        # The security option is 'static'
        if sec_cxt and ":" in sec_cxt:
            sec_cxt_list = sec_cxt.split(":")
            if len(sec_cxt_list) == 5:
                user, role, types, level, category = tuple(sec_cxt_list)
                # The selinux category set may be an unordered or same for
                # users, but 'ps -eo label' always returns an ordered and
                # deduplicate selinux category set.
                category = ",".join(sorted(list(set(category.split(",")))))
                selinux_label_category_sorted = ['%s' % user, '%s' % role,
                                                 '%s' % types, '%s' % level,
                                                 '%s' % category]
                sec_cxt_sorted = ":".join(selinux_label_category_sorted)
                logging.debug("The selinux context with sorted and deduplicated"
                              " category: %s", sec_cxt_sorted)
        if (cmd_outputs == sec_cxt or sec_cxt_sorted and
                cmd_outputs == sec_cxt_sorted):
            logging.info("The selinux label '%s' is expected",
                         cmd_outputs)
            return True
        else:
            return False