#NEWLINE# @ atomic . action_timer ( 'mistral.create_workbook' ) #NEWLINE# def _create_workbook( self , definition ) : #NEWLINE# #INDENT# 'Create a new workbook.\n\n        :param definition: workbook description in string\n                           (yaml string) format\n        :returns: workbook object\n        ' #NEWLINE# definition = yaml . safe_load ( definition ) #NEWLINE# definition [ 'name' ] = self . generate_random_name ( ) #NEWLINE# definition = yaml . safe_dump ( definition ) #NEWLINE# return self . clients ( 'mistral' ) . workbooks . create ( definition )