def get_input_ids(input_list_file: str) -> list[str]:
    """Get the input IDs from an input list file.

    Only returns one id per sample (line) if there are multiple inputs.
    Assumes all inputs have the same id for a given sample.
    """
    input_ids = []
    with Path(input_list_file).open() as input_list:
        for line in input_list:
            # skip output lines
            if line.startswith(("#", "%")):
                continue

            # split the line into inputs
            inputs = line.strip().split(" ")
            # get the id from the first input
            input_id = Path(inputs[0].split(":=")[-1]).stem
            input_ids.append(input_id)

    return input_ids
Get the input IDs from an input list file.

    Only returns one id per sample (line) if there are multiple inputs.
    Assumes all inputs have the same id for a given sample.
    
olive/platform_sdk/qualcomm/utils/input_list.py