On Android 10 or newer you can use the following Kotlin code
```
val fusedLocationClient = LocationServices.getFusedLocationProviderClient(this)
fusedLocationClient.lastLocation
    .addOnSuccessListener { location: Location? ->
        val geocoder = Geocoder(this, Locale.getDefault())
        val addresses = geocoder.getFromLocation(location!!.latitude, location.longitude, 1)
        val countryCode = addresses[0].countryCode
    }
```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence