code: def postprocess_after_ya(
      native_lib_build_dir, lib_name, resources_dir, base_dir
  ):
      jar_name = lib_name + ".jar"
      jar_src_path = os.path.join(native_lib_build_dir, jar_name)
  
      if os.path.exists(jar_src_path):
          """
          Ya Make's DLL_JAVA packs classes generated by SWIG into it's own jar,
          put these classes into resource dir to be added in main package's jar.
          """
  
          print(
              "extract classes from jar to resources", file=sys.stderr
          )
          _extract_classes_from_jar(jar_src_path, resources_dir)
  
          """
              Copy jar with sources to target dir (needed for documentation generators)
          """
          print("copy sources jar to target", file=sys.stderr)
  
          target_dir = os.path.join(base_dir, "target")
  
          os.makedirs(target_dir, exist_ok=True)
  
          shutil.copy(
              os.path.join(
                  native_lib_build_dir, lib_name + "-sources.jar"
              ),
              target_dir,
          )
  
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 14 for calling a global function with example usage: postprocess_after_ya(native_lib_build_dir, lib_name, resources_dir, base_dir) without return types