class_docstr: Tests for dataset analysis utilities.
class_docstr_tok: ["Tests","for","dataset","analysis","utilities","."]
docstr: Test relation count dataframe.
docstr_tok: ["Test","relation","count","dataframe","."]
code: def test_relation_count_dataframe(self):
      """Test relation count dataframe."""
      for labels, merge_subsets in itertools.product(
          (False, True), repeat=2
      ):
          _test_count_dataframe(
              dataset=self.dataset,
              df=dataset_analysis.get_relation_count_df(
                  dataset=self.dataset,
                  add_labels=labels,
                  merge_subsets=merge_subsets,
              ),
              labels=labels,
              merge_subsets=merge_subsets,
          )
  
imports: import itertools
  import unittest
  from typing import Iterable, Mapping
  import numpy
  import pandas
  from pykeen.datasets import Dataset, Nations
  from pykeen.datasets import analysis
  from pykeen.triples import analysis
  from pykeen.typing import LABEL_HEAD, LABEL_TAIL
label_desc: Use image node_id 2 for calling the DatasetAnalysisTests obj's underlying member method code with example usage: obj.test_relation_count_dataframe() without return types