code: def make_zip_pkg(
      zip_dir,
      zip_basename,
      pkg_name,
      script_basename,
      source,
      depth=1,
      compiled=False,
  ):
      import zipfile
  
      unlink = []
      init_name = make_script(zip_dir, "__init__", "")
      unlink.append(init_name)
      init_basename = os.path.basename(init_name)
      script_name = make_script(zip_dir, script_basename, source)
      unlink.append(script_name)
      if compiled:
          init_name = py_compile.compile(init_name, doraise=True)
          script_name = py_compile.compile(script_name, doraise=True)
          unlink.extend((init_name, script_name))
      pkg_names = [
          os.sep.join([pkg_name] * i) for i in range(1, depth + 1)
      ]
      script_name_in_zip = os.path.join(
          pkg_names[-1], os.path.basename(script_name)
      )
      zip_filename = zip_basename + os.extsep + "zip"
      zip_name = os.path.join(zip_dir, zip_filename)
      with zipfile.ZipFile(zip_name, "w") as zip_file:
          for name in pkg_names:
              init_name_in_zip = os.path.join(name, init_basename)
              zip_file.write(init_name, init_name_in_zip)
          zip_file.write(script_name, script_name_in_zip)
      for name in unlink:
          os.unlink(name)
      # if test.support.verbose:
      #    with zipfile.ZipFile(zip_name, 'r') as zip_file:
      #        print 'Contents of %r:' % zip_name
      #        zip_file.printdir()
      return zip_name, os.path.join(zip_name, script_name_in_zip)
  
imports: import collections
  import importlib
  import sys
  import os
  import os.path
  import subprocess
  import py_compile
  from importlib.util import source_from_cache
  from test import support
  from test.support.import_helper import make_legacy_pyc
label_desc: Use image node_id 11 for calling a global function with example usage: make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, source, depth, compiled) and returns: zip_name,  os