@classmethod
  def _NameFromValue(cls, value):
    # Many string constants begin with punctuation or symbols like '@'. Remove
    # those.
    name = value
    while not name[0].isalnum():
      name = name[1:]
      if not name:
        # we ran out? Just revert
        name = value
        break
    # If we are left with a number, we have to turn it into an alphanumeric.
    if not name[0].isalpha():
      name = 'value_' + name
    return name
This will return a single metadata value held by the widget
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/template_objects.py/Constant._NameFromValue--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3QuestionTypeAbstractWidget.get