code: def copy_files(src_paths, output_directory):
      for src_path, file_mode in src_paths:
          if os.path.isdir(src_path):
              child_files = os.listdir(src_path)
              for child_file in child_files:
                  dst_path = copy(
                      os.path.join(src_path, child_file),
                      output_directory,
                  )
                  os.chmod(dst_path, file_mode)
          else:
              dst_path = copy(
                  src_path,
                  os.path.join(
                      output_directory, os.path.basename(src_path)
                  ),
              )
              os.chmod(dst_path, file_mode)
  
file_path: flink/flink-python/setup.py
imports: from __future__ import print_function
  import io
  import os
  import platform
  import re
  import sys
  from distutils.command.build_ext import build_ext
  from shutil import copytree, copy, rmtree
  from setuptools import setup, Extension
  from xml.etree import ElementTree
label_desc: Use image node_id 2 for calling a global function with example usage: copy_files(src_paths, output_directory) without return types