'Workbook' object has no attribute 'get_worksheet_by_name'

import xlsxwriter as xl wb = xl.Workbook(f, {'in_memory': True}) sheet = wb.add_worksheet('example') sheet = wb.get_worksheet_by_name('example') According to the docs the function is correct but I...