parameters: (self, selector_config)
return_statement: return self.sort_tests(*test_list.get_tests())
docstring: Select the test files that match the given configuration.
  
          Args:
              selector_config: a _SelectorConfig instance.
          Returns:
              A tuple with the list of selected tests and the list of excluded tests.
docstring_summary: Select the test files that match the given configuration.
docstring_tokens: Select the test files that match the given configuration .
function: def select(self, selector_config):  # noqa: D406,D407,D411,D413
          """Select the test files that match the given configuration.
  
          Args:
              selector_config: a _SelectorConfig instance.
          Returns:
              A tuple with the list of selected tests and the list of excluded tests.
          """
  
          # 1. Find the root files.
          if selector_config.roots is not None:
              roots = selector_config.roots
          else:
              roots = self._test_file_explorer.read_root_file(selector_config.root)
  
          # 2. Create a _TestList.
          test_list = _TestList(self._test_file_explorer, roots, self._tests_are_files)
          # 3. Apply the exclude_files.
          if self._tests_are_files and selector_config.exclude_files:
              test_list.exclude_files(selector_config.exclude_files)
          # 4. Apply the tag filters.
          if selector_config.tags_expression:
              test_list.match_tag_expression(selector_config.tags_expression, self.get_tags)
          # 5. Apply the include files last with force=True to take precedence over the tags.
          if self._tests_are_files and selector_config.include_files:
              test_list.include_files(selector_config.include_files, force=True)
  
          return self.sort_tests(*test_list.get_tests())
function_tokens: def select ( self , selector_config ) : # noqa: D406,D407,D411,D413 # 1. Find the root files. if selector_config . roots is not None : roots = selector_config . roots else : roots = self . _test_file_explorer . read_root_file ( selector_config . root ) # 2. Create a _TestList. test_list = _TestList ( self . _test_file_explorer , roots , self . _tests_are_files ) # 3. Apply the exclude_files. if self . _tests_are_files and selector_config . exclude_files : test_list . exclude_files ( selector_config . exclude_files ) # 4. Apply the tag filters. if selector_config . tags_expression : test_list . match_tag_expression ( selector_config . tags_expression , self . get_tags ) # 5. Apply the include files last with force=True to take precedence over the tags. if self . _tests_are_files and selector_config . include_files : test_list . include_files ( selector_config . include_files , force = True ) return self . sort_tests ( * test_list . get_tests ( ) )