code: def test_domain_cpp_ast_anon_definitions():
      check(
          "class", "@a", {3: "Ut1_a"}, asTextOutput="class [anonymous]"
      )
      check(
          "union", "@a", {3: "Ut1_a"}, asTextOutput="union [anonymous]"
      )
      check("enum", "@a", {3: "Ut1_a"}, asTextOutput="enum [anonymous]")
      check(
          "class", "@1", {3: "Ut1_1"}, asTextOutput="class [anonymous]"
      )
      check(
          "class",
          "@a::A",
          {3: "NUt1_a1AE"},
          asTextOutput="class [anonymous]::A",
      )
  
      check(
          "function",
          "int f(int @a)",
          {1: "f__i", 2: "1fi"},
          asTextOutput="int f(int [anonymous])",
      )
  
imports: import itertools
  import re
  import zlib
  import pytest
  import sphinx.domains.cpp
  from sphinx import addnodes
  from sphinx.addnodes import desc, desc_content, desc_name, desc_parameter, desc_parameterlist, desc_sig_name, desc_sig_space, desc_signature, desc_signature_line, pending_xref
  from sphinx.domains.cpp import DefinitionError, DefinitionParser, NoOldIdError, Symbol, _id_prefix, _max_id
  from sphinx.ext.intersphinx import load_mappings, normalize_intersphinx_mapping
  from sphinx.testing import restructuredtext
  from sphinx.testing.util import assert_node
  from sphinx.writers.text import STDINDENT
label_desc: Use image node_id 15 for calling a global function with example usage: test_domain_cpp_ast_anon_definitions() without return types