code: def get_namespaces_from_names(name, all_names):
      
      names = configuration_namespaces.keys() if all_names else [name]
      for name in names:
          yield get_namespace(name)
docs: Return a generator which yields namespace objects.