def is_valid_rate(instance):
    """Something that ends with kbit, mbit or gbit."""
    if not isinstance(instance, str):
        return False
    if (
        not instance.endswith("gbit")
        and not instance.endswith("mbit")
        and not instance.endswith("kbit")
    ):
        return False
    return True