code: def node_has_namespaces(node: BaseEntity, namespaces: Set[str]) -> bool:
      
      ns = node.get(NAMESPACE)
      return ns is not None and ns in namespaces
docs: Pass for nodes that have one of the given namespaces.