
'''simple docstring'''
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tf_available, is_torch_available


lowercase__											={'configuration_swin': ['SWIN_PRETRAINED_CONFIG_ARCHIVE_MAP', 'SwinConfig', 'SwinOnnxConfig']}


try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowercase__											=[
		    'SWIN_PRETRAINED_MODEL_ARCHIVE_LIST',
		    'SwinForImageClassification',
		    'SwinForMaskedImageModeling',
		    'SwinModel',
		    'SwinPreTrainedModel',
		    'SwinBackbone',
		]

try:
		if not is_tf_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowercase__											=[
		    'TF_SWIN_PRETRAINED_MODEL_ARCHIVE_LIST',
		    'TFSwinForImageClassification',
		    'TFSwinForMaskedImageModeling',
		    'TFSwinModel',
		    'TFSwinPreTrainedModel',
		]

if TYPE_CHECKING:
		from .configuration_swin import SWIN_PRETRAINED_CONFIG_ARCHIVE_MAP, SwinConfig, SwinOnnxConfig

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_swin import (
				    SWIN_PRETRAINED_MODEL_ARCHIVE_LIST,
				    SwinBackbone,
				    SwinForImageClassification,
				    SwinForMaskedImageModeling,
				    SwinModel,
				    SwinPreTrainedModel,
				)

		try:
				if not is_tf_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_tf_swin import (
				    TF_SWIN_PRETRAINED_MODEL_ARCHIVE_LIST,
				    TFSwinForImageClassification,
				    TFSwinForMaskedImageModeling,
				    TFSwinModel,
				    TFSwinPreTrainedModel,
				)

else:
		import sys

		lowercase__											=_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)


'''simple docstring'''
from typing import Any







class   a_ :




			def __init__(       self					,   UpperCAmelCase	):
				a_      				=						data
				a_      				=						None







class   a_ :




			def __init__(       self	):
				a_      				=						None




			def 					lowerCAmelCase__					(       self	):
				a_      				=						self.head
				while temp is not None:
					print(temp.data					,   end=""" """	)
					a_      				=						temp.next
				print()




			def 					lowerCAmelCase__					(       self					,   UpperCAmelCase	):
				a_      				=						Node(UpperCAmelCase	)
				a_      				=						self.head
				a_      				=						new_node






			def 					lowerCAmelCase__					(       self					,   UpperCAmelCase					,   UpperCAmelCase	):
				if node_data_a == node_data_a:
					return
				else:
					a_      				=						self.head
					while node_a is not None and node_a.data != node_data_a:
						a_      				=						node_a.next

					a_      				=						self.head
					while node_a is not None and node_a.data != node_data_a:
						a_      				=						node_a.next

					if node_a is None or node_a is None:
						return

					a_				,  a_      				=						node_a.data, node_a.data


if __name__ == "__main__":
		lowercase__											=LinkedList()
		for i in range(5, 0, -1):
				ll.push(i)

		ll.print_list()

		ll.swap_nodes(1, 4)
		print('After swapping')
		ll.print_list()
