code: def submodule(parent, name, pkg_dir, content=""):
      path = os.path.join(pkg_dir, name + ".py")
      with open(path, "w", encoding="utf-8") as subfile:
          subfile.write(content)
      return "{}.{}".format(parent, name), path
  
imports: import builtins
  import contextlib
  import errno
  import functools
  from importlib import machinery, util, invalidate_caches
  import marshal
  import os
  import os.path
  from test.support import import_helper
  from test.support import os_helper
  import unittest
  import sys
  import tempfile
  import types
label_desc: Use image node_id 7 for calling a global function with example usage: submodule(parent, name, pkg_dir, content) and returns: str,  path