code: def run_codecov(session: nox.Session) -> None:
      args = session.posargs or []
  
      system = platform.system().lower()
      if system == "linux":
          command = ["./codecov"]
      elif system == "darwin":
          arch = platform.machine().lower()
          if arch != "x86_64":
              session.run(
                  "softwareupdate",
                  "--install-rosetta",
                  "--agree-to-license",
              )
              command = ["arch", "-x86_64", "./codecov"]
          else:
              command = ["./codecov"]
      elif system == "windows":
          command = ["codecov.exe"]
      else:
          raise OSError("Unsupported operating system")
  
      command.extend(args)
  
      session.run(*command, external=True)
  
file_path: wandb/noxfile.py
imports: import os
  import platform
  import nox
label_desc: Use image node_id 7 for calling a global function with example usage: run_codecov(session) without return types