code: def extracted_output_files(base_dir, file_path, output_directory):
      extracted_file_paths = []
      from xml.dom.minidom import parse
  
      dom = parse(file_path)
      root_data = dom.documentElement
      file_elements = (
          root_data.getElementsByTagName("files")[0]
      ).getElementsByTagName("file")
      # extracted <files><file></file></files>
      for file_element in file_elements:
          source = (
              (
                  file_element.getElementsByTagName("source")[0]
              ).childNodes[0]
          ).data
          file_mode = int(
              (
                  (
                      file_element.getElementsByTagName("fileMode")[0]
                  ).childNodes[0]
              ).data,
              8,
          )
          try:
              dst = (
                  (
                      file_element.getElementsByTagName(
                          "outputDirectory"
                      )[0]
                  ).childNodes[0]
              ).data
              if dst == output_directory:
                  if has_unsupported_tag(file_element):
                      sys.exit(-1)
                  extracted_file_paths.append(
                      (os.path.join(base_dir, source), file_mode)
                  )
          except IndexError:
              pass
      # extracted <fileSets><fileSet></fileSet></fileSets>
      file_elements = (
          root_data.getElementsByTagName("fileSets")[0]
      ).getElementsByTagName("fileSet")
      for file_element in file_elements:
          source = (
              (
                  file_element.getElementsByTagName("directory")[0]
              ).childNodes[0]
          ).data
          file_mode = int(
              (
                  (
                      file_element.getElementsByTagName("fileMode")[0]
                  ).childNodes[0]
              ).data,
              8,
          )
          try:
              dst = (
                  (
                      file_element.getElementsByTagName(
                          "outputDirectory"
                      )[0]
                  ).childNodes[0]
              ).data
              if dst == output_directory:
                  if has_unsupported_tag(file_element):
                      sys.exit(-1)
                  extracted_file_paths.append(
                      (os.path.join(base_dir, source), file_mode)
                  )
          except IndexError:
              pass
      return extracted_file_paths
  
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 4 for calling a global function with example usage: extracted_output_files(base_dir, file_path, output_directory) and returns: extracted_file_paths