#NEWLINE# def get_mastery( id_ ) : #NEWLINE# #INDENT# '\n    Gets a mastery\n\n    Args:\n        id_ (int): the ID of the mastery to get\n\n    Returns:\n        Mastery: the mastery\n    ' #NEWLINE# mastery = cassiopeia . core . requests . data_store . get ( cassiopeia . type . core . staticdata . Mastery , id_ , 'id' ) #NEWLINE# if mastery : #NEWLINE# #INDENT# return mastery #NEWLINE# #UNINDENT# mastery = cassiopeia . dto . staticdataapi . get_mastery ( id_ ) #NEWLINE# if ( cassiopeia . core . requests . load_policy is cassiopeia . type . core . common . LoadPolicy . eager ) : #NEWLINE# #INDENT# ( cassiopeia . riotapi . get_masteries ( ) if mastery . mastery_ids else None ) #NEWLINE# #UNINDENT# mastery = cassiopeia . type . core . staticdata . Mastery ( mastery ) #NEWLINE# cassiopeia . core . requests . data_store . store ( mastery , id_ ) #NEWLINE# return mastery