code: def fix_windows_args(program: str, args, env):
      """Adjust our desired program and command line arguments for use on Windows."""
      # If we are running a .py on Windows, ensure we call it with this Python
      # (to support test suite shims)
      if program.lower().endswith(".py"):
          args = [sys.executable] + args
  
      # If the program we want is not on the PATH, check elsewhere
      for shim in SHIMS:
          shimmed_path = shim_path(shim, env)
          new_args0 = shutil.which(args[0], path=shimmed_path)
          if new_args0:
              args[0] = new_args0
              break
  
      return args
  
imports: from __future__ import annotations
  import logging
  import os
  import re
  import shutil
  import sys
  from collections.abc import Iterable, Iterator
  from itertools import chain
  from pathlib import Path
  from typing import Any, Callable, TypeVar
  from packaging.version import InvalidVersion, Version
label_desc: Use image node_id 11 for calling a global function with example usage: fix_windows_args(program, args, env) and returns: args