def normalize_cmd(cmd):
    # Use PATH to determine the executable
    exe = normexe(cmd[0])

    # Figure out the shebang from the resulting command
    cmd = parse_filename(exe) + (exe,) + cmd[1:]

    # This could have given us back another bare executable
    exe = normexe(cmd[0])

    return (exe,) + cmd[1:]
Fixes for the following issues on windows
dataset/ETHPy150Open pre-commit/pre-commit/pre_commit/parse_shebang.py/normalize_cmd