code: def build_apple_stats_monitor(session):
      """Builds the apple stats monitor binary for the current platform.
  
      The binary will be located in
      core/pkg/monitor/apple/.build/<arch>-apple-macosx/release/AppleStats
      """
      session.cd("core/pkg/monitor/apple")
      session.run(
          "swift",
          "build",
          "--configuration",
          "release",
          "-Xswiftc",
          "-cross-module-optimization",
          external=True,
      )
      # copy the binary to core/pkg/monitor/apple/AppleStats
      session.run(
          "cp",
          f".build/{platform.machine().lower()}-apple-macosx/release/AppleStats",
          "AppleStats",
      )
  
file_path: wandb/noxfile.py
imports: import os
  import platform
  import nox
label_desc: Use image node_id 9 for calling a global function with example usage: build_apple_stats_monitor(session) without return types