code: def try_utf8_decode(value):
      
      if not value or not is_string(value):
          return value
      elif PYTHON3 and not isinstance(value, bytes):
          return value
      elif not PYTHON3 and not isinstance(value, unicode):
          return value
  
      try:
          return value.decode('utf-8')
      except UnicodeDecodeError:
          pass
  
      return value
docs: Try to decode an object.
  
      :param value:
      :return: