code: def testroot(rootdir):
      testroot_path = rootdir / "test-directive-code"
      return testroot_path
  
imports: import os.path
  import pytest
  from docutils import nodes
  from sphinx.config import Config
  from sphinx.directives.code import LiteralIncludeReader
  from sphinx.testing.util import etree_parse
label_desc: Use image node_id 1 for calling a global function with example usage: testroot(rootdir) and returns: testroot_path