code: def _get_file_handler(package_data_spec, data_files_spec):
      """Get a package_data and data_files handler command."""
  
      class FileHandler(BaseCommand):
          def run(self):
              package_data = self.distribution.package_data
              package_spec = package_data_spec or dict()
  
              for key, patterns in package_spec.items():
                  package_data[key] = _get_package_data(key, patterns)
  
              self.distribution.data_files = _get_data_files(
                  data_files_spec, self.distribution.data_files
              )
  
      return FileHandler
  
imports: from collections import defaultdict
  from os.path import join
  import io
  import os
  import functools
  import pipes
  import re
  import shlex
  import subprocess
  import sys
  from setuptools import Command
  from setuptools.command.build_py import build_py
  from setuptools.command.sdist import sdist
  from distutils import log
  from setuptools.command.develop import develop
  from setuptools.command.bdist_egg import bdist_egg
label_desc: Use image node_id 17 for calling a global function with example usage: _get_file_handler(package_data_spec, data_files_spec) and returns: FileHandler