def export_reports_collection(self, file_name):
    result = subprocess.run(['mongoexport', f'--host=mongodb', '--pretty', '--jsonArray', f'--db={self.db_name}', '--collection=reports', f'--out={file_name}.json'])
    if (result.returncode == 0):
        return f'{file_name}.json'
    else:
        raise ChildProcessError(f'mongoexport error return code [{result.returncode}]')
def export_reports_collection(self, file_name):
    result = subprocess.run(['mongoexport', f'--host=mongodb', '--pretty', '--jsonArray', f'--db={self.db_name}', '--collection=reports', f'--out={file_name}.json'])
    if (result.returncode == 0):
        return f'{file_name}.json'
    else:
        raise ChildProcessError(f'mongoexport error return code [{result.returncode}]')