def get_track_by_id(session, track_id, track_point_limit=None, track_point_offset=None):
tracking_data = {}<EOL>if track_point_limit:<EOL><INDENT>tracking_data['<STR_LIT>'] = track_point_limit<EOL><DEDENT>if track_point_offset:<EOL><INDENT>tracking_data['<STR_LIT>'] = track_point_offset<EOL><DEDENT>response = make_get_request(session, '<STR_LIT>'.format(track_id),<EOL>params_data=tracking_data)<EOL>json_data = response.json()<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>return json_data['<STR_LIT:result>']<EOL><DEDENT>else:<EOL><INDENT>raise TrackNotFoundException(message=json_data['<STR_LIT:message>'],<EOL>error_code=json_data['<STR_LIT>'],<EOL>request_id=json_data['<STR_LIT>'])<EOL><DEDENT>
Gets a specific track