def METHOD_NAME(pipette_name_list: List[str]) -> PipetteVersionType:
    """Convert a string generation name to a py:obj:PipetteVersionType.
    Pipette generations are strings in the format of "gen1" or "gen2", and
    usually associated withe :py:data:PipetteName.
    Args:
        pipette_name_list (List[str]): A list of strings from the separated by `_`
        py:data:PipetteName.
    Returns:
        PipetteVersionType: A pipette version object.
    """
    if "flex" in pipette_name_list or "gen3" in pipette_name_list:
        return PipetteVersionType(3, 0)
    elif "gen2" in pipette_name_list:
        return PipetteVersionType(2, 0)
    else:
        return PipetteVersionType(1, 0)