class_docstr: Verify test dataset size comparing it to the train dataset size.
class_docstr_tok: ["Verify","test","dataset","size","comparing","it","to","the","train","dataset","size","."]
docstr: Run check.
  
  Returns
  -------
  CheckResult
      with value of type pandas.DataFrame.
      Value contains two keys, 'train' - size of the train dataset
      and 'test' - size of the test dataset.
  
  Raises
  ------
  DeepchecksValueError
      if not dataset instances were provided.
      if datasets are empty.
docstr_tok: ["Run","check",".","Returns","--","--","--","-","CheckResult","with","value","of","type","pandas.DataFrame",".","Value","contains","two","keys",",","'train","'","-","size","of","the","train","dataset","and","'test","'","-","size","of","the","test","dataset",".","Raises","--","--","--","DeepchecksValueError","if","not","dataset","instances","were","provided",".","if","datasets","are","empty","."]
code: def run_logic(self, context: Context) -> CheckResult:
      """Run check.
  
      Returns
      -------
      CheckResult
          with value of type pandas.DataFrame.
          Value contains two keys, 'train' - size of the train dataset
          and 'test' - size of the test dataset.
  
      Raises
      ------
      DeepchecksValueError
          if not dataset instances were provided.
          if datasets are empty.
      """
      train_dataset = context.train
      test_dataset = context.test
      sizes = {"Train": len(train_dataset), "Test": len(test_dataset)}
      display = pd.DataFrame(sizes, index=["Size"])
      return CheckResult(value=sizes, display=display)
  
file_path: deepchecks/deepchecks/tabular/checks/train_test_validation/datasets_size_comparison.py
imports: import typing
  import pandas
  from deepchecks.core import CheckResult, ConditionCategory, ConditionResult
  from deepchecks.tabular import Context, TrainTestCheck
  from deepchecks.utils.strings import format_number
label_desc: Use image node_id 1 for calling the DatasetsSizeComparison obj's underlying member method code with example usage: obj.run_logic(context) and returns: CheckResult