code: def get_nano_packages():
      nano_packages = []
      for dirpath, _, _ in os.walk(os.path.join(nano_home, "bigdl")):
          print(dirpath)
          package = dirpath.split(nano_home + os.sep)[1].replace(
              os.sep, "."
          )
          if any(
              fnmatch.fnmatchcase(package, pat=pattern)
              for pattern in exclude_patterns
          ):
              print("excluding", package)
          else:
              nano_packages.append(package)
              print("including", package)
      return nano_packages
  
imports: import fnmatch
  from setuptools import setup
  import urllib.request
  import os
  import stat
label_desc: Use image node_id 1 for calling a global function with example usage: get_nano_packages() and returns: nano_packages