code: def pytest_sessionstart(self, session):
      def collect(*args, **kwargs):
          accept_filename_predicate = test_filter.make_py_file_filter(
              session.config.option.test_filter
          )
          full_test_names_file_path = (
              session.config.option.test_list_path
          )
          filenames_filter = None
  
          if full_test_names_file_path and os.path.exists(
              full_test_names_file_path
          ):
              with open(full_test_names_file_path, "r") as afile:
                  # in afile stored 2 dimensional array such that array[modulo_index] contains tests which should be run in this test suite
                  full_names_filter = set(
                      json.load(afile)[
                          int(session.config.option.modulo_index)
                      ]
                  )
                  filenames_filter = set(
                      map(lambda x: x.split("::")[0], full_names_filter)
                  )
  
          for test_module in self._test_modules:
              module = LoadedModule.from_parent(
                  name=test_module, parent=session
              )
              if not pytest_ignore_collect(
                  module,
                  session,
                  filenames_filter,
                  accept_filename_predicate,
              ):
                  yield module
  
              if (
                  os.environ.get("YA_PYTEST_DISABLE_DOCTEST", "no")
                  == "no"
              ):
                  module = DoctestModule.from_parent(
                      name=test_module, parent=session
                  )
                  if not pytest_ignore_collect(
                      module,
                      session,
                      filenames_filter,
                      accept_filename_predicate,
                  ):
                      yield module
  
          if os.environ.get("YA_PYTEST_DISABLE_DOCTEST", "no") == "no":
              for doctest_module in self._doctest_modules:
                  yield DoctestModule.from_parent(
                      name=doctest_module,
                      parent=session,
                      namespace=False,
                  )
  
      session.collect = collect
  
imports: import os
  import sys
  from six import reraise
  import logging
  import py
  import pytest
  import _pytest.python
  import _pytest.doctest
  import json
  import library.python.testing.filter.filter
label_desc: Use image node_id 2 for calling the CollectionPlugin obj's underlying member method code with example usage: obj.pytest_sessionstart(session) without return types