
'''simple docstring'''







from dataclasses import dataclass
from typing import Callable, Optional

import datasets


@dataclass
class       lowerCAmelCase			(					datasets.BuilderConfig      ):
		a				:       Optional[Callable]							=       None
		a				:       Optional[dict]							=       None
		a				:       Optional[datasets.Features]							=       None




		def      lowercase							(					self   ):
								assert self.generator is not None, "generator must be specified"

								if self.gen_kwargs is None:
														_SCREAMING_SNAKE_CASE					=			{}


class       lowerCAmelCase			(					datasets.GeneratorBasedBuilder      ):
		a				:       Optional[int]							=       GeneratorConfig




		def      lowercase							(					self   ):
								return datasets.DatasetInfo(features=self.config.features   )




		def      lowercase							(					self       ,    UpperCamelCase   ):
								return [datasets.SplitGenerator(name=datasets.Split.TRAIN       ,    gen_kwargs=self.config.gen_kwargs   )]




		def      lowercase							(					self       ,    **UpperCamelCase   ):
								for idx, ex in enumerate(self.config.generator(**UpperCamelCase   )   ):
														yield idx, ex

'''simple docstring'''







class       lowerCAmelCase			:




		def __init__(					self       ,    UpperCamelCase=None   ):
								_SCREAMING_SNAKE_CASE					=			data
								_SCREAMING_SNAKE_CASE					=			None




		def __repr__(					self   ):
								_SCREAMING_SNAKE_CASE					=			""
								_SCREAMING_SNAKE_CASE					=			self
								while temp:
														string_rep += F'<{temp.data}> ---> '
														_SCREAMING_SNAKE_CASE					=			temp.next
								string_rep += "<END>"
								return string_rep



def       _a		(						_SCREAMING_SNAKE_CASE		: Any	):

						# if elements_list is empty
						if not elements_list:
												raise Exception("The Elements List is empty"	)

						# Set first element as Head
						_SCREAMING_SNAKE_CASE					=			Node(elements_list[0]	)
						_SCREAMING_SNAKE_CASE					=			head
						# Loop through elements from position 1
						for data in elements_list[1:]:
												_SCREAMING_SNAKE_CASE					=			Node(_SCREAMING_SNAKE_CASE	)
												_SCREAMING_SNAKE_CASE					=			current.next
						return head


_snake_case					: List[Any]     			=					[1, 3, 5, 32, 44, 12, 43]
print(F"List: {list_data}")
print("""Creating Linked List from List.""")
_snake_case					: List[Any]     			=					make_linked_list(list_data)
print("""Linked List:""")




print(linked_list)