def _GetItemAttr(attr):
  getter = operator.attrgetter(attr)
  return lambda _, item: getter(item)
Retrieve a dataset if it exists, otherwise return an empty dict.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetItemAttr--crossover with--dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py/BigQueryClient.get_dataset