def separate_data_into_chunks(self, raw_data, size_of_data):
        """Return data by separating it into 20 mb chunks.

        Args:
            raw_data (list): list of json objects.

        Yields:
            list: separated chunks in list.
        """
        original_index = consts.SIZE_OF_CHUNK_TO_INGEST
        count_of_data_for_original_index = int((len(raw_data) * original_index) / size_of_data)
        number_of_iterations = ceil(len(raw_data) / count_of_data_for_original_index)
        start_count = 0
        for _ in range(number_of_iterations):
            end_index = start_count + count_of_data_for_original_index
            if end_index > len(raw_data):
                yield raw_data[start_count:]
                break
            yield raw_data[start_count:end_index]
            start_count = end_index
Return data by separating it into 20 mb chunks.

        Args:
            raw_data (list): list of json objects.

        Yields:
            list: separated chunks in list.
        
Solutions/Infoblox/Data Connectors/InfobloxCloudDataConnector/InfobloxDossierJobResult/get_dossier_result.py