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