#NEWLINE# def get_run_metadata( run_id , session = None ) : #NEWLINE# #INDENT# "Return all run metadata objects associated with a given run.\n\n    :param str run_id: The uuid of the run to get all the metadata\n    :param session: optional session object if one isn't provided a new session\n                    will be acquired for the duration of this operation\n\n    :return list: The list of metadata objects\n    :rtype: subunit2sql.models.RunMetadata\n    " #NEWLINE# session = ( session or get_session ( ) ) #NEWLINE# query = db_utils . model_query ( models . RunMetadata , session ) . join ( models . Run , ( models . RunMetadata . run_id == models . Run . id ) ) . filter ( ( models . Run . uuid == query ) ) #NEWLINE# return query . all ( )