code: def _suffix_test_modules_tree():
      root = {}
  
      for module in sys.extra_modules:
          if not module.startswith(TEST_MOD_PREFIX):
              continue
  
          module = module[len(TEST_MOD_PREFIX) :]
          node = root
  
          for name in reversed(module.split(".")):
              if name == "__init__":
                  continue
              node = node.setdefault(name, {})
  
      return root
  
imports: import collections
  import functools
  import math
  import os
  import re
  import sys
  import yatest_lib.tools
label_desc: Use image node_id 11 for calling a global function with example usage: _suffix_test_modules_tree() and returns: root