'Get datastore folder for downloading temporary images.'

def _get_temp_image_folder(self, image_size_in_bytes):

    req = {}
    req[hub.DatastoreSelector.SIZE_BYTES] = image_size_in_bytes
    req[hub.DatastoreSelector.HARD_AFFINITY_DS_TYPE] = (hub.DatastoreType.get_all_types() - {hub.DatastoreType.VSAN, hub.DatastoreType.VVOL})
    (host_ref, _resource_pool, summary) = self._select_datastore(req)
    ds_name = summary.name
    dc_ref = self.volumeops.get_dc(host_ref)
    folder_path = TMP_IMAGES_DATASTORE_FOLDER_PATH
    self.volumeops.create_datastore_folder(ds_name, folder_path, dc_ref)
    return (dc_ref, ds_name, folder_path)
