parameters: (file_desc: io.BufferedReader)
docstring: Read next component in the file.
      All components are contained in supported_components
      :param file_desc:file descriptor
      :return: string like '<component>'
docstring_summary: Read next component in the file.
      All components are contained in supported_components
      :param file_desc:file descriptor
      :return: string like '<component>'
docstring_tokens: Read next component in the file . All components are contained in supported_components : param file_desc : file descriptor : return : string like <component >
function: def find_next_component(file_desc: io.BufferedReader) -> str:
      """
      Read next component in the file.
      All components are contained in supported_components
      :param file_desc:file descriptor
      :return: string like '<component>'
      """
      is_start = True
      while True:
          tag = find_next_tag(file_desc)
          # Tag is <NameOfTheLayer>. But we want get without '<' and '>'
          component_name = tag[1:-1].lower()
          if component_name in supported_components or tag == end_of_nnet_tag:
              # There is whitespace after component's name
              read_placeholder(file_desc, 1)
              return component_name
          elif tag == '<ComponentName>':
              raise Error('Component has unsupported or not specified type')
          elif not (is_start and tag == end_of_component_tag) and tag.find('Component') != -1:
              raise Error('Component has unsupported type {}'.format(tag))
          is_start = False
function_tokens: def find_next_component ( file_desc : io . BufferedReader ) -> str : is_start = True while True : tag = find_next_tag ( file_desc ) # Tag is <NameOfTheLayer>. But we want get without '<' and '>' component_name = tag [ 1 : - 1 ] . lower ( ) if component_name in supported_components or tag == end_of_nnet_tag : # There is whitespace after component's name read_placeholder ( file_desc , 1 ) return component_name elif tag == '<ComponentName>' : raise Error ( 'Component has unsupported or not specified type' ) elif not ( is_start and tag == end_of_component_tag ) and tag . find ( 'Component' ) != - 1 : raise Error ( 'Component has unsupported type {}' . format ( tag ) ) is_start = False