




'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


A     :   Optional[Any]									={
    'configuration_xlm_roberta_xl': [
        'XLM_ROBERTA_XL_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'XLMRobertaXLConfig',
        'XLMRobertaXLOnnxConfig',
    ],
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   A     :   Optional[int]									=[
       'XLM_ROBERTA_XL_PRETRAINED_MODEL_ARCHIVE_LIST',
       'XLMRobertaXLForCausalLM',
       'XLMRobertaXLForMaskedLM',
       'XLMRobertaXLForMultipleChoice',
       'XLMRobertaXLForQuestionAnswering',
       'XLMRobertaXLForSequenceClassification',
       'XLMRobertaXLForTokenClassification',
       'XLMRobertaXLModel',
       'XLMRobertaXLPreTrainedModel',
   ]

if TYPE_CHECKING:
   from .configuration_xlm_roberta_xl import (
       XLM_ROBERTA_XL_PRETRAINED_CONFIG_ARCHIVE_MAP,
       XLMRobertaXLConfig,
       XLMRobertaXLOnnxConfig,
   )

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_xlm_roberta_xl import (
          XLM_ROBERTA_XL_PRETRAINED_MODEL_ARCHIVE_LIST,
          XLMRobertaXLForCausalLM,
          XLMRobertaXLForMaskedLM,
          XLMRobertaXLForMultipleChoice,
          XLMRobertaXLForQuestionAnswering,
          XLMRobertaXLForSequenceClassification,
          XLMRobertaXLForTokenClassification,
          XLMRobertaXLModel,
          XLMRobertaXLPreTrainedModel,
      )

else:
   import sys

   A     :   Optional[int]									=_LazyModule(__name__, globals()['__file__'], _import_structure)










'''simple docstring'''







from typing import Any


class     _a						:
       def __init__(			self		:			int     ,       lowercase		:			Any       ):



           '''simple docstring'''

           UpperCAmelCase     =	data
           UpperCAmelCase     =	None






class     _a						:
       def __init__(			self		:			int       ):



           '''simple docstring'''

           UpperCAmelCase     =	None
       def 					A   (			self		:			int       ):



           '''simple docstring'''

           UpperCAmelCase     =	self.head
           while temp is not None:
               print(temp.data     ,       end=''' '''       )
               UpperCAmelCase     =	temp.next
           print()
       def 					A   (			self		:			List[str]     ,       lowercase		:			Any       ):



           '''simple docstring'''

           UpperCAmelCase     =	Node(lowercase       )
           UpperCAmelCase     =	self.head
           UpperCAmelCase     =	new_node







       def 					A   (			self		:			List[Any]     ,       lowercase		:			List[Any]     ,       lowercase		:			str       ):



           '''simple docstring'''

           if node_data_a == node_data_a:
               return
           else:
               UpperCAmelCase     =	self.head
               while node_a is not None and node_a.data != node_data_a:
                   UpperCAmelCase     =	node_a.next

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

               if node_a is None or node_a is None:
                   return

               UpperCAmelCase ,  UpperCAmelCase     =	node_a.data, node_a.data


if __name__ == "__main__":
   A									=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()




