def create_job(self):
my_user_agent = None<EOL>try:<EOL><INDENT>my_user_agent = pkg_resources.require('<STR_LIT>')[<NUM_LIT:0>].version<EOL><DEDENT>except pkg_resources.DistributionNotFound:<EOL><INDENT>my_user_agent = '<STR_LIT>'<EOL><DEDENT>finally:<EOL><INDENT>headers = {<EOL>"<STR_LIT>": "<STR_LIT>".format(<EOL>upward_ua=self.meta.get('<STR_LIT>', '<STR_LIT>'),<EOL>uploader_ua=my_user_agent<EOL>)<EOL>}<EOL><DEDENT>req = requests.Request(<EOL>'<STR_LIT:POST>',<EOL>"<STR_LIT>".format(<EOL>api_address=self.api_address,<EOL>path=self.create_job_path<EOL>),<EOL>headers=headers<EOL>)<EOL>req.data = {<EOL>'<STR_LIT>': self.job.test_start<EOL>}<EOL>prepared_req = req.prepare()<EOL>logger.debug('<STR_LIT>', pretty_print(prepared_req))<EOL>response = send_chunk(self.session, prepared_req)<EOL>logger.debug('<STR_LIT>', response.status_code)<EOL>logger.debug('<STR_LIT>', response.content)<EOL>job_id = response.content.decode('<STR_LIT:utf-8>') if isinstance(response.content, bytes) else response.content<EOL>if not job_id:<EOL><INDENT>self.failed.set()<EOL>raise ValueError('<STR_LIT>', response.content)<EOL><DEDENT>else:<EOL><INDENT>logger.info('<STR_LIT>', job_id)<EOL>return job_id<EOL><DEDENT>
Create public Luna job

        Returns:
            job_id (basestring): Luna job id