<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rowcol_from_template(target_tab, template_tab=0):
 	"""Adjusts row heights and column widths to match the template 	Parameters 	target_tab: Integer 	\tTable to be adjusted 	template_tab: Integer, defaults to 0 	\tTemplate table 	"""


	for row, tab in S.row_heights.keys():
		# Delete all row heights in target table
		if tab == target_tab:
			S.row_heights.pop((row, tab))

		if tab == template_tab:
			S.row_heights[(row, target_tab)] = \
				S.row_heights[(row, tab)]

	for col, tab in S.col_widths.keys():
		# Delete all column widths in target table
		if tab == target_tab:
			S.col_widths.pop((col, tab))

		if tab == template_tab:
			S.col_widths[(col, target_tab)] = \
					S.col_widths[(col, tab)]

	return "Table {tab} adjusted.".format(tab=target_tab)