def METHOD_NAME(
    guids: Sequence[str],
    location: int | None = None,
    sample_id: int | None = None,
    work_station: int | None = None,
) -> list[str]:
    """
    Filter a sequence of GUIDs by location, sample_id and/or work_station.
    Args:
        guids: Sequence of guids that should be filtered.
        location: Location code to match
        sample_id: Sample_id to match
        work_station: Workstation to match
    Returns:
        A list of GUIDs that matches the supplied parts.
    """
    matched_guids = []
    for guid in guids:
        guid_dict = parse_guid(guid)
        match = True
        if sample_id is not None:
            if guid_dict['sample'] != sample_id:
                match = False
        if location is not None:
            if guid_dict['location'] != location:
                match = False
        if work_station is not None:
            if guid_dict['work_station'] != work_station:
                match = False
        if match:
            matched_guids.append(guid)
    return matched_guids