class_docstr: We run and validate all the examples but use scipy-sparse-csr_matrix as input data.
  We also let algos use CSR method (some algos ignore the method argument since they
  do not specifically support CSR).
class_docstr_tok: ["We","run","and","validate","all","the","examples","but","use","scipy-sparse-csr_matrix","as","input","data",".","We","also","let","algos","use","CSR","method","(","some","algos","ignore","the","method","argument","since","they","do","not","specifically","support","CSR",")","."]
code: def call_main(self, module: ModuleType):
      if any(
          module.__name__.startswith(x)
          for x in [
              "adaboost",
              "brownboost",
              "decision_forest",
              "sorting",
              "stump_classification",
          ]
      ):
          self.skipTest("Missing CSR support")
  
      signature = inspect.signature(module.main)
      parameters = list(signature.parameters)
      if "readcsv" not in parameters:
          self.skipTest("Missing readcsv kwarg support")
  
      if "method" in parameters:
          method = "fastCSR"
          if any(
              x in module.__name__
              for x in ["low_order_moms", "covariance"]
          ):
              method = "singlePassCSR"
          if "implicit_als" in module.__name__:
              method = "defaultDense"
          if "kmeans" in module.__name__:
              method = "randomDense"
          if hasattr(module, "dflt_method"):
              method = module.dflt_method.replace(
                  "defaultDense", "fastCSR"
              ).replace("Dense", "CSR")
          return module.main(
              readcsv=readcsv.csr_read_csv, method=method
          )
      else:
          return module.main(readcsv=readcsv.csr_read_csv)
  
imports: import importlib
  import inspect
  import os
  import sys
  import time
  import unittest
  from dataclasses import dataclass, field
  from datetime import datetime
  from importlib import import_module
  from pathlib import Path
  from types import ModuleType
  from typing import Any, Callable, List, Optional, Tuple, Union
  import numpy
  import numpy.typing
  from daal4py.sklearn._utils import daal_check_version, get_daal_version
label_desc: Use image node_id 1 for calling the TestExCSRMatrix obj's underlying member method code with example usage: obj.call_main(module) and returns: module, module