code: def copy_custom_compile():
      """Copy the third party folders into site-packages under
      PACKAGE_NAME/third_party/internal/ and
      ./build/lib/PACKAGE_NAME/third_party/internal/
      for good measure"""
      from distutils.dir_util import copy_tree
  
      try:
          import site
  
          cp_from = INTERNAL + "/"
          if hasattr(site, "getsitepackages"):
              site_packages = site.getsitepackages()
          else:
              from distutils.sysconfig import get_python_lib
  
              site_packages = [get_python_lib()]
          if hasattr(site, "getusersitepackages"):
              site_packages = site_packages + [
                  site.getusersitepackages()
              ]
          for sitepack in site_packages:
              for globbed in glob(sitepack + "/" + PACKAGE_NAME + "*/"):
                  try:
                      cp_to = (
                          globbed
                          + "/"
                          + PACKAGE_NAME
                          + "/third_party/internal/"
                      )
                  except IndexError as e:
                      print(
                          "Site Package: '"
                          + sitepack
                          + "' did not have "
                          + PACKAGE_NAME
                      )
                      continue
                  print("Copying from: ", cp_from, " --> to: ", cp_to)
                  copy_tree(cp_from, cp_to)
      except Exception as e:
          print(
              "Error copying internal pysqlite folder to site packages:"
          )
          traceback.print_exc(e)
      try:
          cp_from = INTERNAL + "/"
          cp_to = BUILD_THIRD_PARTY + "/internal/"
          print("Copying from: ", cp_from, " --> to: ", cp_to)
          copy_tree(cp_from, cp_to)
      except Exception as e:
          print(
              "Error copying internal pysqlite folder to build folder:"
          )
          traceback.print_exc(e)
  
imports: from __future__ import print_function
  import fnmatch
  import hashlib
  import os
  import shutil
  import sys
  import subprocess
  import traceback
  import tempfile
  import zipfile
  import distutils.sysconfig
  from glob import glob
  from setuptools import find_packages
  from distutils.core import setup
  from setuptools.command.install import install
  from setuptools.command.egg_info import egg_info
  from setuptools import setup, Distribution
  from multiprocessing import Process
label_desc: Use image node_id 15 for calling a global function with example usage: copy_custom_compile() without return types