code: def get_bigdl_packages():
      bigdl_python_home = os.path.abspath(__file__ + "/..")
      bigdl_packages = ["bigdl.share.orca"]
      source_dir = os.path.join(bigdl_python_home, "bigdl")
      for dirpath, dirs, files in os.walk(source_dir):
          package = dirpath.split(bigdl_python_home)[1].replace(
              "/", "."
          )
          if any(
              fnmatch.fnmatchcase(package, pat=pattern)
              for pattern in exclude_patterns
          ):
              print("excluding", package)
          else:
              bigdl_packages.append(package)
              print("including", package)
      return bigdl_packages
  
file_path: BigDL/python/orca/src/setup.py
imports: import os
  import sys
  import fnmatch
  from shutil import copyfile, copytree, rmtree
  from setuptools import setup
label_desc: Use image node_id 3 for calling a global function with example usage: get_bigdl_packages() and returns: bigdl_packages