code: def update_package_data(distribution):
      """update package_data to catch changes during setup."""
      build_py_cmd = distribution.get_command_obj("build_py")
      # distribution.package_data = find_package_data()
      # re-init build_py options which load package_data
      build_py_cmd.finalize_options()
  
imports: from distutils import log
  from distutils import spawn
  import os
  import platform
  import subprocess
  import sys
  from setuptools import Command
  from setuptools import find_packages
  from setuptools import setup
  from setuptools.command.build_py import build_py
  from setuptools.command.develop import develop
  from setuptools.command.egg_info import egg_info
  from setuptools.command.sdist import sdist
label_desc: Use image node_id 4 for calling a global function with example usage: update_package_data(distribution) without return types