<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _add_sub_elements_from_dict(parent, sub_dict):
 	""" 	Add SubElements to the parent element. 	:param parent: ElementTree.Element: The parent element for the newly created SubElement. 	:param sub_dict: dict: Used to create a new SubElement. See `dict_to_xml_schema` 	method docstring for more information. e.g.: 		{"example": { 			"attrs": { 				"key1": "value1", 			}, 		}} 	"""

	for key, value in sub_dict.items():
		if isinstance(value, list):
			for repeated_element in value:
				sub_element = ET.SubElement(parent, key)
				_add_element_attrs(sub_element, repeated_element.get("attrs", {}))
				children = repeated_element.get("children", None)
				if isinstance(children, dict):
					_add_sub_elements_from_dict(sub_element, children)
				elif isinstance(children, str):
					sub_element.text = children
		else:
			sub_element = ET.SubElement(parent, key)
			_add_element_attrs(sub_element, value.get("attrs", {}))
			children = value.get("children", None)
			if isinstance(children, dict):
				_add_sub_elements_from_dict(sub_element, children)
			elif isinstance(children, str):
				sub_element.text = children