class_docstr: Check which compares the sizes of train and test datasets.
code: def run_logic(self, context: Context) -> CheckResult:
      ## Check logic
      train_size = context.train.n_samples
      test_size = context.test.n_samples
  
      ## Return value as check result
      return_value = {"train_size": train_size, "test_size": test_size}
      return CheckResult(return_value)
  
file_path: deepchecks/docs/source/tabular/tutorials/other/plot_add_a_custom_check.py
imports: from deepchecks.core import CheckResult
  from deepchecks.tabular import Context, Dataset, TrainTestCheck
  import pandas
  import matplotlib.pyplot
  from deepchecks.core import CheckResult
  from deepchecks.tabular import Context, Dataset, TrainTestCheck
label_desc: Use image node_id 1 for calling the DatasetSizeComparison obj's underlying member method code with example usage: obj.run_logic(context) and returns: CheckResult