code: def create(labels=None, **kw):
      
      if labels is not None:
          kw[u'labels'] = encoding.PyValueToMessage(MetricValue.LabelsValue,
                                                    labels)
      return MetricValue(**kw)
docs: Constructs a new metric value.
  
      This acts as an alternate to MetricValue constructor which
      simplifies specification of labels.  Rather than having to create
      a MetricValue.Labels instance, all that's necessary to specify the
      required string.
  
      Args:
        labels (dict([string, [string]]):
        **kw: any other valid keyword args valid in the MetricValue constructor
  
      Returns
        :class:`MetricValue`: the created instance