code: def stringify_value(value):
      
      if value is None:
          return u''
      isoformat = getattr(value, 'isoformat', None)
      if isoformat is not None:
          value = isoformat()
      return type(u'')(value)
docs: Convert any value to string.