def UpdateMetadata(metadata, key, value):
  if IsValueValid(value):
    metadata[key] = value
Check if the value is valid, update metadata with the key, value pair.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/bonnie_benchmark.py/UpdateMetadata