<s> """<STR_LIT>""" <EOL> import importlib <EOL> from django . core . management . base import BaseCommand , CommandError <EOL> def call_function ( function_path ) : <EOL> parts = function_path . split ( "<STR_LIT:.>" ) <EOL> function_name , module_name = parts [ - <NUM_LIT:1> ] , "<STR_LIT:.>" . join ( parts [ : - <NUM_LIT:1> ] ) <EOL> module = importlib . import_module ( module_name ) <EOL> function = getattr ( module , function_name ) <EOL> return function ( ) <EOL> def call_functions ( * function_paths ) : <EOL> for function_path in function_paths : <EOL> yield call_function ( function_path ) <EOL> class Command ( BaseCommand ) : <EOL> help = __doc__ <EOL> def handle ( self , * functions , ** options ) : <EOL> for result in call_functions ( * functions ) : <EOL> self . stdout . write ( "<STR_LIT>" . format ( result ) ) </s>
