original_docstring: 
          Check what seted template is valid
  
          Raises:
              ValueError if template is not valid
          
docstring: Check what seted template is valid
  Raises:
  ValueError if template is not valid
docstring_tokens: Check what seted template is valid Raises : ValueError if template is not valid
code: def _validate(
          self,
          template: Union[Template, List[Template], Dict[str, Template]]
      ):
          """
          Check what seted template is valid
  
          Raises:
              ValueError if template is not valid
          """
          if isinstance(template, list):
              for value in template:
                  self._validate(value)
              return
          if isinstance(template, dict):
              for key, value in template.items():
                  if not isinstance(key, str):
                      raise TypeError(f'Invalid key "{key}" type: key in template must be string')
                  self._validate(value)
              return
          if not isinstance(template, Template):
              raise ValueError('Invalid value: value type must be Template')
code_tokens: def _validate ( self , template : Union [ Template , List [ Template ] , Dict [ str , Template ] ] ) : if isinstance ( template , list ) : for value in template : self . _validate ( value ) return if isinstance ( template , dict ) : for key , value in template . items ( ) : if not isinstance ( key , str ) : raise TypeError ( f'Invalid key "{key}" type: key in template must be string' ) self . _validate ( value ) return if not isinstance ( template , Template ) : raise ValueError ( 'Invalid value: value type must be Template' )
short_docstring: Check what seted template is valid
  Raises:
  ValueError if template is not valid
short_docstring_tokens: Check what seted template is valid Raises : ValueError if template is not valid
comment: """
          Check what seted template is valid
  
          Raises:
              ValueError if template is not valid
          """