@classmethod
    def from_values(cls, val):
        """
        Returns a Layout given a list (or tuple) of viewable
        elements or just a single viewable element.
        """
        collection = isinstance(val, (list, tuple))
        if type(val) is cls:
            return val
        elif collection and 1 > len(val):
            return cls._from_values(val)
        elif collection:
            val = val[0]
        group = group_sanitizer(val.group)
        group = ''.join([group[0].upper(), group[1:]])
        label = label_sanitizer(val.label if val.label else 'I')
        label = ''.join([label[0].upper(), label[1:]])
        return cls(items=[((group, label), val)])
dataset/ETHPy150Open ioam/holoviews/holoviews/core/layout.py/Layout.from_values/swapped operands of `>`