def run_osprey(self, config):
fh, filename = tempfile.mkstemp(dir=self.temp_dir)<EOL>with open(filename, '<STR_LIT:wb>') as f:<EOL><INDENT>f.write(config)<EOL><DEDENT>args = Namespace(config=filename, n_iters=<NUM_LIT:1>, output='<STR_LIT>')<EOL>execute_worker.execute(args, None)<EOL>dump = json.loads(execute_dump.execute(args, None))<EOL>assert len(dump) == <NUM_LIT:1><EOL>assert dump[<NUM_LIT:0>]['<STR_LIT:status>'] == '<STR_LIT>', dump[<NUM_LIT:0>]['<STR_LIT:status>']<EOL>
Run osprey-worker.

Parameters
----------
config : str
    Configuration string.