def file(self,data=None,label="NOLABEL",ext='.dat'):
        filename = join(self.dir,'%06d_%s%s'%(self.count,label,ext))
        self.count += 1
        f = open(filename,'wb')
        if data != None:
            f.write(data)
            f.close()
        else:
            return f
Report Modules support media
dataset/ETHPy150Open bolme/pyvision/src/pyvision/analysis/ImageLog.py/ImageLog.file--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/app_manager/tests/test_media_suite.py/MediaSuiteTest.test_all_media_report_module