<s> import os <EOL> def to_csv ( self , dir_path , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if not os . path . exists ( dir_path ) : <EOL> os . makedirs ( dir_path ) <EOL> for name , table in self . items ( ) : <EOL> path = os . path . join ( dir_path , '<STR_LIT>' % name ) <EOL> table . to_csv ( path , ** kwargs ) </s>
