<s> from __future__ import print_function <EOL> from json import load <EOL> from pulsar . managers . util . drmaa import DrmaaSessionFactory <EOL> from pulsar . main import ArgumentParser <EOL> DESCRIPTION = "<STR_LIT>" <EOL> def main ( argv = None ) : <EOL> arg_parser = ArgumentParser ( description = DESCRIPTION ) <EOL> arg_parser . add_argument ( "<STR_LIT>" , required = True ) <EOL> args = arg_parser . parse_args ( argv ) <EOL> job_attributes = load ( open ( args . job_attributes , "<STR_LIT:r>" ) ) <EOL> session = DrmaaSessionFactory ( ) . get ( ) <EOL> external_id = session . run_job ( ** job_attributes ) <EOL> print ( external_id ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
