code: def _copy_native_code_to_setup():
      script_path = os.path.dirname(os.path.abspath(__file__))
      root_path = os.path.join(script_path, "..", "..")
      sym_path = os.path.join(script_path, "interpret", "root")
      source_shared_path = os.path.join(root_path, "shared", "libebm")
      target_shared_path = os.path.join(sym_path, "shared", "libebm")
  
      # If native code exists two directories up, update setup.py's copy.
      if os.path.exists(source_shared_path):
          if os.path.exists(target_shared_path):
              shutil.rmtree(target_shared_path)
          shutil.copytree(source_shared_path, target_shared_path)
  
          file_names = ["build.bat", "build.sh", "LICENSE", "README.md"]
          for file_name in file_names:
              shutil.copy(
                  os.path.join(root_path, file_name),
                  os.path.join(sym_path, file_name),
              )
      else:  # Otherwise, ensure that native code exists for setup.py.
          if not os.path.exists(target_shared_path):
              raise Exception(
                  "Shared directory in symbolic not found. This should be configured either by setup.py or alternative build processes."
              )
  
imports: import subprocess
  import os
  import glob
  import shutil
  from setuptools.command.build import build
  from setuptools.command.install import install
  from setuptools import setup, find_packages
  from setuptools.command.sdist import sdist
label_desc: Use image node_id 1 for calling a global function with example usage: _copy_native_code_to_setup() without return types