docs: def MetricValueTypeFromPythonType(python_type):
    """Converts Python types to MetricMetadata.ValueType enum values."""
    if python_type in (int, long):
      return rdf_stats.MetricMetadata.ValueType.INT
    elif python_type == float:
      return rdf_stats.MetricMetadata.ValueType.FLOAT
    else:
      raise ValueError("Invalid value type: %s" % python_type)