@staticmethod
def _decode_from_bytes(string):
    """
        Tries to decode any string from bytes. Does not fail if gets already decoded string.
        :param string: string to decode
        :type string: bytes
        :return: decoded string
        :rtype: basestring
        """
    return string if isinstance(string, type('')) else string.decode('ascii',
        'ignore')
