code: def build_python_packages(build_command, arch=None):
      # Runs Python artifacts build commands. If 'arch' argument was passed, adds it to shell command.
      python_extension_build_command = [
          gradle_script_name,
          "python-extension:build",
      ]
      if arch is not None:
          python_extension_build_command += [f"-Parchitecture={arch}"]
          command = build_command + [arch]
      else:
          command = build_command
      print_message(f"Building Python Extension...")
      run_command(python_extension_build_command + build_parameters)
      print_message(f"Building Python Package...")
      run_command(command)
  
file_path: lets-plot/build_release.py
imports: import platform
  import sys
  import subprocess
  import yaml
label_desc: Use image node_id 5 for calling a global function with example usage: build_python_packages(build_command, arch) without return types