code: def postprocess_after_cmake(
      parsed_args, top_src_root_dir, resources_dir
  ):
      package_src_sub_path = os.path.relpath(
          parsed_args.base_dir, top_src_root_dir
      )
      if parsed_args.macos_universal_binaries:
          # build_native.build does not produce anything except final binaries in standard native_lib_build_dir place
          # so get java sources from one of the architecture subdirs
          native_lib_build_dir = _get_native_lib_dir(
              os.path.join(
                  parsed_args.build_output_root_dir, "darwin-x86_64"
              ),
              package_src_sub_path,
          )
      else:
          native_lib_build_dir = _get_native_lib_dir(
              parsed_args.build_output_root_dir, package_src_sub_path
          )
  
      file_with_swig_generated_sources = os.path.join(
          native_lib_build_dir, "swig_gen_java.lst"
      )
      if os.path.exists(file_with_swig_generated_sources):
          print(
              "compile generated java code to resources dir",
              file=sys.stderr,
          )
          subprocess.check_call(
              [
                  "javac",
                  "-d",
                  resources_dir,
                  f"@{file_with_swig_generated_sources}",
              ]
          )
  
          target_dir = os.path.join(parsed_args.base_dir, "target")
          os.makedirs(target_dir, exist_ok=True)
  
          # sources jar is needed for documentation generators
          print("create sources jar in target", file=sys.stderr)
          subprocess.check_call(
              [
                  "jar",
                  "cMf",
                  os.path.join(
                      target_dir, parsed_args.lib_name + "-sources.jar"
                  ),
                  "-C",
                  os.path.join(native_lib_build_dir, "java"),
                  "ru",
              ]
          )
  
imports: from __future__ import absolute_import, print_function
  import argparse
  import errno
  import os
  import platform
  import re
  import shutil
  import subprocess
  import sys
  import zipfile
label_desc: Use image node_id 15 for calling a global function with example usage: postprocess_after_cmake(parsed_args, top_src_root_dir, resources_dir) without return types