Returns the path of learningData.csv in a dataset

def _get_learning_data_path(self):
        """
        Returns the path of learningData.csv in a dataset
        """
        for res in self.dsDoc['dataResources']:
            resPath = res['resPath']
            resType = res['resType']

            dirname = os.path.basename(os.path.normpath(os.path.dirname(resPath)))

            if resType == 'table' and dirname == 'tables':
                if 'learningData.csv' in res['resPath']:
                    return os.path.join(self.dsHome, resPath)

        # if the for loop is over and learningDoc is not found, then return None
        raise RuntimeError('could not find learningData file the dataset')