@staticmethod
def is_datastore_mount_usable(mount_info):
    """Check if a datastore is usable as per the given mount info.

        The datastore is considered to be usable for a host only if it is
        writable, mounted and accessible.

        :param mount_info: HostMountInfo data object
        :return: True if datastore is usable
        """
    writable = mount_info.accessMode == 'readWrite'
    mounted = getattr(mount_info, 'mounted', True)
    accessible = getattr(mount_info, 'accessible', False)
    return writable and mounted and accessible
