code: def encodeValue(value):
      
      if isinstance(value, (list, tuple)):
          return [common.AttributeValue(string_value=str(v)) for v in value]
      else:
          return [common.AttributeValue(string_value=str(value))]
docs: TODO