def byte_to_readable(size_bytes):
    """Function to convert bytes to human readable format (MB,GB ...)
    
    Parameters
    ----------
    
    size_bytes: float
        size in bytes

    :return: Return size in human readable format
    :rtype: str
    """
    
    for x in ['bytes', 'KB', 'MB', 'GB', 'TB']:
        if size_bytes < 1024.0:
            return "%3.1f %s" % (size_bytes, x)
        size_bytes /= 1024.0