<s> """<STR_LIT>""" <EOL> from functools import partial <EOL> from scrapy . utils . python import get_func_args <EOL> def wrap_loader_context ( function , context ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in get_func_args ( function ) : <EOL> return partial ( function , loader_context = context ) <EOL> else : <EOL> return function </s>
