


from typing import TYPE_CHECKING

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


lowerCamelCase__							:						Union[str, Any]							     =   {
    """configuration_ernie""": ["""ERNIE_PRETRAINED_CONFIG_ARCHIVE_MAP""", """ErnieConfig""", """ErnieOnnxConfig"""],
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   lowerCamelCase__							:						int							     =   [
       """ERNIE_PRETRAINED_MODEL_ARCHIVE_LIST""",
       """ErnieForCausalLM""",
       """ErnieForMaskedLM""",
       """ErnieForMultipleChoice""",
       """ErnieForNextSentencePrediction""",
       """ErnieForPreTraining""",
       """ErnieForQuestionAnswering""",
       """ErnieForSequenceClassification""",
       """ErnieForTokenClassification""",
       """ErnieModel""",
       """ErniePreTrainedModel""",
   ]

if TYPE_CHECKING:
   from .configuration_ernie import ERNIE_PRETRAINED_CONFIG_ARCHIVE_MAP, ErnieConfig, ErnieOnnxConfig

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_ernie import (
          ERNIE_PRETRAINED_MODEL_ARCHIVE_LIST,
          ErnieForCausalLM,
          ErnieForMaskedLM,
          ErnieForMultipleChoice,
          ErnieForNextSentencePrediction,
          ErnieForPreTraining,
          ErnieForQuestionAnswering,
          ErnieForSequenceClassification,
          ErnieForTokenClassification,
          ErnieModel,
          ErniePreTrainedModel,
      )

else:
   import sys

   lowerCamelCase__							:						str							     =   _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)





'''simple docstring'''


# Function to print upper half of diamond (pyramid)


def 		_lowercase (SCREAMING_SNAKE_CASE							):




     '''simple docstring'''





     for i in range(0       ,					SCREAMING_SNAKE_CASE							):
          for _ in range(0       ,					n - i - 1							):  # printing spaces
               print(" "       ,					end=""							)
          for _ in range(0       ,					i + 1							):  # printing stars
               print("* "       ,					end=""							)
          print()


def 		_lowercase (SCREAMING_SNAKE_CASE							):




     '''simple docstring'''





     for i in range(SCREAMING_SNAKE_CASE       ,					0       ,					-1							):
          for _ in range(SCREAMING_SNAKE_CASE       ,					0       ,					-1							):  # printing stars
               print("* "       ,					end=""							)
          print()
          for _ in range(n - i + 1       ,					0       ,					-1							):  # printing spaces
               print(" "       ,					end=""							)


def 		_lowercase (SCREAMING_SNAKE_CASE							):




     '''simple docstring'''





     if n <= 0:
          print("       ...       ....        nothing printing :("							)
          return
     floyd(SCREAMING_SNAKE_CASE							)  # upper half
     reverse_floyd(SCREAMING_SNAKE_CASE							)  # lower half


if __name__ == "__main__":
      print(r"""| /\ | |- |  |-  |--| |\  /| |-""")
      print(r"""|/  \| |- |_ |_  |__| | \/ | |_""")
      _UpperCamelCase 							=  1
      while K:
            _UpperCamelCase 							=  int(input("""enter the number and , and see the magic : """))
            print()
            pretty_print(user_number)
            _UpperCamelCase 							=  int(input("""press 0 to exit... and 1 to continue..."""))

      print("""Good Bye...""")

