code: def get_undefined_namespaces(graph: BELGraph) -> Set[str]:
      
      return {
          exc.namespace
          for _, exc, _ in graph.warnings
          if isinstance(exc, UndefinedNamespaceWarning)
      }
docs: Get all namespaces that are used in the BEL graph aren't actually defined.