docs: def get_names(graph):
      """Get all names for each namespace.
  
      :type graph: pybel.BELGraph
      :rtype: dict[str,set[str]]
      """
      rv = defaultdict(set)
      for namespace, name in _identifier_filtered_iterator(graph):
          rv[namespace].add(name)
      return dict(rv)