def METHOD_NAME(
    name: PipetteName, provided_version: Optional[str] = None
) -> PipetteModelVersionType:
    """Convert the py:data:PipetteName to a py:obj:PipetteModelVersionType.
    `PipetteNames` are in the format of "p300_single" or "p300_single_gen1".
    Args:
        name (PipetteName): The pipette name we want to convert.
    Returns:
        PipetteModelVersionType: An object representing a broken out PipetteName
        string.
    """
    split_pipette_name = name.split("_")
    channels = channels_from_string(split_pipette_name[1])
    if provided_version:
        version = version_from_string(provided_version)
    else:
        version = version_from_generation(split_pipette_name)
    pipette_type = PipetteModelType[split_pipette_name[0]]
    return PipetteModelVersionType(pipette_type, channels, version)