class_docstr: Test all datasets are annotated.
class_docstr_tok: ["Test","all","datasets","are","annotated","."]
docstr: Check :func:`pykeen.utils_docs.with_structured_docstr`` was properly applied ot all datasets.
code: def test_annotated(self):
      """Check :func:`pykeen.utils_docs.with_structured_docstr`` was properly applied ot all datasets."""
      for name, cls in sorted(dataset_resolver.lookup_dict.items()):
          with self.subTest(name=name):
              try:
                  docdata = cls.__docdata__
              except AttributeError:
                  self.fail("missing __docdata__")
              self.assertIn("name", docdata)
              self.assertIsInstance(docdata["name"], str)
              self.assertIn("statistics", docdata)
              self.assertIn("citation", docdata)
  
              # Check minimal statistics
              for k in (
                  "entities",
                  "relations",
                  "triples",
                  "training",
                  "testing",
                  "validation",
              ):
                  self.assertIn(
                      k,
                      docdata["statistics"],
                      msg=f"statistics are missing {k}",
                  )
                  self.assertIsInstance(docdata["statistics"][k], int)
  
              # Check either a github link or author/publication information is given
              citation = docdata["citation"]
              self.assertTrue(
                  (
                      "author" in citation
                      and "link" in citation
                      and "year" in citation
                  )
                  or "github" in citation,
              )
  
          signature = dataset_resolver.signature(cls)
          random_state_param = signature.parameters.get("random_state")
          if random_state_param is not None:
              self.assertEqual(0, random_state_param.default)
  
imports: import pathlib
  import unittest
  from io import BytesIO
  from urllib.request import urlopen
  from pykeen.datasets import Kinships, Nations, dataset_resolver
  from pykeen.datasets.base import PackedZipRemoteDataset, SingleTabbedDataset, TarFileRemoteDataset, TarFileSingleDataset, UnpackedRemoteDataset
  from pykeen.datasets.nations import NATIONS_TEST_PATH, NATIONS_TRAIN_PATH, NATIONS_VALIDATE_PATH
  from tests import cases, constants
label_desc: Use image node_id 1 for calling the TestAnnotated obj's underlying member method code with example usage: obj.test_annotated() without return types