def get_networks(self):
        network_names = set()
        nodes = self.xml.xpath('//default:node[@component_manager_id] | //node[@component_manager_id]', namespaces=self.namespaces)
        for node in nodes:
            if 'component_manager_id' in node.attrib:
                network_urn = node.get('component_manager_id')
                if network_urn.startswith("urn:"):
                    network_hrn = Xrn(network_urn).get_hrn()
                else:
                    # some component_manager_ids are hrns instead of urns??
                    network_hrn = network_urn
                network_names.add(network_hrn)
        network_names = list(network_names)
        networks = [{"name": x} for x in network_names]
        return networks

    # Nodes
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/sfa/rspecs/.oldversions/pgv2.py/PGv2.get_networks/original