def METHOD_NAME(cls, values):
    # Make sure that mount is present if target is pipette
    if values.get("target") == HomeTarget.pipette.value and not values.get("mount"):
        raise ValueError("mount must be specified if target is pipette")
    return values