code: 
  
  
  """simple docstring"""
  
  
  
  
  
  
  
  def _A		(		lowercase	):
  
  
  
  
  
  
  
      """simple docstring"""
      a					=len(lowercase	)
  
      # Set the gap value to be decreased by a factor of 1.3
      # after each iteration
      a					=1.3
  
      # Continue sorting until the gap is 1
      while gap > 1:
          # Decrease the gap value
          a					=int(gap / shrink	)
  
          # Sort the elements using insertion sort
          for i in range(lowercase ,					len(lowercase	)	):
              a					=collection[i]
              a					=i
              while j >= gap and collection[j - gap] > temp:
                  a					=collection[j - gap]
                  j -= gap
              a					=temp
  
      return collection
  
  
  if __name__ == "__main__":
    import doctest
  
    doctest.testmod()
style_context: 
  
  
  """simple docstring"""
  
  
  
  
  
  
  
  from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available
  
  
  lowerCamelCase_     :     Any    		=						{"""configuration_dinat""": ["""DINAT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """DinatConfig"""]}
  
  
  try:
         if not is_torch_available():
                raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
         pass
  else:
         lowerCamelCase_     :     List[str]    		=						[
             """DINAT_PRETRAINED_MODEL_ARCHIVE_LIST""",
             """DinatForImageClassification""",
             """DinatModel""",
             """DinatPreTrainedModel""",
             """DinatBackbone""",
         ]
  
  if TYPE_CHECKING:
         from .configuration_dinat import DINAT_PRETRAINED_CONFIG_ARCHIVE_MAP, DinatConfig
  
         try:
                if not is_torch_available():
                       raise OptionalDependencyNotAvailable()
         except OptionalDependencyNotAvailable:
                pass
         else:
                from .modeling_dinat import (
                    DINAT_PRETRAINED_MODEL_ARCHIVE_LIST,
                    DinatBackbone,
                    DinatForImageClassification,
                    DinatModel,
                    DinatPreTrainedModel,
                )
  
  else:
         import sys
  
         lowerCamelCase_     :     List[Any]    		=						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)