def get_global_namespace(decls):
found = [<EOL>decl for decl in scopedef.make_flatten(decls) if decl.name == '<STR_LIT>' and<EOL>isinstance(decl, namespace_t)]<EOL>if len(found) == <NUM_LIT:1>:<EOL><INDENT>return found[<NUM_LIT:0>]<EOL><DEDENT>raise RuntimeError("<STR_LIT>")<EOL>
Get the global namespace (::) from a declaration tree.

Args:
    decls (list[declaration_t]): a list of declarations

Returns:
    namespace_t: the global namespace_t object (::)