def dataset_resource(self, ref_id, friendly_name=None, description=None,
                         access=None):
        data = {
            "datasetReference": {
                "datasetId": ref_id,
                "projectId": self.project_id
            }
        }
        if friendly_name:
            data["friendlyName"] = friendly_name
        if description:
            data["description"] = description
        if access:
            data["access"] = access

        return data
Validate and transform temperature unit.
dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py/BigQueryClient.dataset_resource--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/helpers/config_validation.py/temperature_unit