class_docstr: Contain the results of a suite run.
  
  Parameters
  ----------
  name: str
  results: List[BaseCheckResult]
  extra_info: Optional[List[str]]
class_docstr_tok: ["Contain","the","results","of","a","suite","run",".","Parameters","--","--","--","--","--","name",":","str","results",":","List","[","BaseCheckResult","]","extra_info",":","Optional","[","List","[","str","]","]"]
docstr: Select results either by indexes or result header names.
  
  Parameters
  ----------
  idx : Set[int], default None
      The list of indexes to filter the check results from the results list. If
      names is None, then this parameter is required.
  names : Set[str], default None
      The list of names denoting the header of the check results. If idx is None,
      this parameter is required. Both idx and names cannot be passed.
  
  Returns
  -------
  List[Union['check_types.CheckResult', 'check_types.CheckFailure']] :
      A list of check results filtered either by the indexes or by their names.
code: def select_results(
      self, idx: Set[int] = None, names: Set[str] = None
  ) -> List[
      Union["check_types.CheckResult", "check_types.CheckFailure"]
  ]:
      """Select results either by indexes or result header names.
  
      Parameters
      ----------
      idx : Set[int], default None
          The list of indexes to filter the check results from the results list. If
          names is None, then this parameter is required.
      names : Set[str], default None
          The list of names denoting the header of the check results. If idx is None,
          this parameter is required. Both idx and names cannot be passed.
  
      Returns
      -------
      List[Union['check_types.CheckResult', 'check_types.CheckFailure']] :
          A list of check results filtered either by the indexes or by their names.
      """
      if idx is None and names is None:
          raise DeepchecksNotSupportedError(
              "Either idx or names should be passed"
          )
      if idx and names:
          raise DeepchecksNotSupportedError(
              "Only one of idx or names should be passed"
          )
  
      if names:
          names = [
              name.lower().replace("_", " ").strip() for name in names
          ]
          output = [
              result
              for name in names
              for result in self.results
              if result.get_header().lower() == name
          ]
      else:
          output = [
              result
              for index, result in enumerate(self.results)
              if index in idx
          ]
      return output
  
imports: import abc
  import io
  import json
  import pathlib
  import warnings
  from collections import OrderedDict
  from typing import Any, Dict, List, Optional, Sequence, Set, Tuple, Type, Union, cast
  import jsonpickle
  from bs4 import BeautifulSoup
  from ipywidgets import Widget
  from typing_extensions import Self, TypedDict
  from deepchecks import __version__
  from deepchecks.core import check_result
  from deepchecks.core.checks import BaseCheck, CheckConfig
  from deepchecks.core.display import DisplayableResult, save_as_html
  from deepchecks.core.errors import DeepchecksNotSupportedError, DeepchecksValueError
  from deepchecks.core.serialization.abc import HTMLFormatter
  from deepchecks.core.serialization.suite_result.html import SuiteResultSerializer
  from deepchecks.core.serialization.suite_result.ipython import SuiteResultSerializer
  from deepchecks.core.serialization.suite_result.json import SuiteResultSerializer
  from deepchecks.core.serialization.suite_result.widget import SuiteResultSerializer
  from deepchecks.utils.strings import get_random_string, widget_to_html_string
  from deepchecks.utils.wandb_utils import wandb_run
  from .None import common
label_desc: Use image node_id 2 for calling the SuiteResult obj's underlying member method code with example usage: obj.select_results(idx, names) and returns: output