def _item_to_metric(iterator, resource):
 return Metric.from_api_repr(resource, iterator.client)

def _item_to_metric ( iterator , resource ) : return Metric . from_api_repr ( resource , iterator . client )
convert a metric protobuf to the native object .