code: def setup_package():
      script_names = [
          f
          for f in os.listdir(SCRIPTS_TARGET)
          if os.path.isfile(os.path.join(SCRIPTS_TARGET, f))
      ]
      scripts = list(
          map(
              lambda script: os.path.join(SCRIPTS_TARGET, script),
              script_names,
          )
      )
  
      metadata = dict(
          name="analytics-zoo",
          version=VERSION,
          description="A unified Data Analytics and AI platform for distributed TensorFlow, Keras, "
          "PyTorch, Apache Spark/Flink and Ray",
          long_description=long_description,
          long_description_content_type="text/markdown",
          author="Analytics Zoo Authors",
          author_email="bigdl-user-group@googlegroups.com",
          license="Apache License, Version 2.0",
          url="https://github.com/intel-analytics/analytics-zoo",
          packages=packages,
          install_requires=[
              "pyspark==" + PYSPARK_VERSION,
              "bigdl==0.13.1.dev1",
              "conda-pack==0.3.1",
              "packaging",
              "filelock",
          ],
          extras_require={
              "ray": [
                  "ray==1.2.0",
                  "psutil",
                  "aiohttp==3.7.0",
                  "aioredis==1.1.0",
                  "setproctitle",
                  "hiredis==1.1.0",
                  "async-timeout==3.0.1",
              ],
              "automl": [
                  "tensorflow>=1.15.0,<2.0.0",
                  "h5py==2.10.0",
                  "ray[tune]==1.2.0",
                  "psutil",
                  "aiohttp==3.7.0",
                  "aioredis==1.1.0",
                  "setproctitle",
                  "hiredis==1.1.0",
                  "pandas==1.0.3",
                  "scikit-learn>=0.20.0,<=0.22.0",
                  "requests",
                  "scipy==1.5",
                  "protobuf==3.12.0",
                  "torch==1.8.1",
                  "tsfresh==0.17.0",
              ],
          },
          dependency_links=[
              "https://d3kbcqa49mib13.cloudfront.net/spark-2.0.0-bin-hadoop2.7.tgz"
          ],
          include_package_data=True,
          package_data={
              "zoo.share": [
                  "lib/analytics-zoo*with-dependencies.jar",
                  "conf/*",
                  "bin/*",
                  "bin/standalone/*",
                  "bin/standalone/sbin/*",
                  "extra-resources/*",
              ]
          },
          scripts=scripts,
          classifiers=[
              "License :: OSI Approved :: Apache Software License",
              "Programming Language :: Python :: 3",
              "Programming Language :: Python :: 3.5",
              "Programming Language :: Python :: 3.6",
              "Programming Language :: Python :: Implementation :: CPython",
          ],
          platforms=["mac", "linux"],
      )
  
      setup(**metadata)
  
file_path: analytics-zoo/pyzoo/setup.py
imports: import os
  import sys
  from shutil import copyfile, copytree, rmtree
  import fnmatch
  from setuptools import setup
label_desc: Use image node_id 4 for calling a global function with example usage: setup_package() without return types