def __init__(self, element, metadata_in=None):
        r"""
        Initialize a :class:`TDSCatalogMetadata` object.

        Parameters
        ----------
        element : :class:`~xml.etree.ElementTree.Element`
            An :class:`~xml.etree.ElementTree.Element` representing a metadata node
        metadata_in : dict[str, object], optional
            Parent metadata to inherit, if appropriate. Defaults to None.
        """
        self._ct = _ComplexTypes()
        self._st = _SimpleTypes()
        self._sts = _SimpleTypes.__dict__
        self._cts = _ComplexTypes.__dict__

        inherited = False
        if element.attrib in 'inherited':
            inherited = element.attrib['inherited']
            if inherited == 'true':
                inherited = True
            else:
                inherited = False

        if metadata_in and inherited:
            # only inherit metadata passed in if the new metadata
            # element has inherit set to True
            self.metadata = metadata_in
        else:
            self.metadata = {"inherited": inherited}

        element_name = self._get_tag_name(element)
        if element_name == "metadata":
            for child in element:
                self._parse_element(child)
        else:
            self._parse_element(element)
dataset/ETHPy150Open Unidata/siphon/siphon/metadata.py/TDSCatalogMetadata.__init__/swapped operands of `in`