class_docstr: Test triples utilities.
class_docstr_tok: ["Test","triples","utilities","."]
docstr: Test binary i/o on core triples factory.
docstr_tok: ["Test","binary","i\/o","on","core","triples","factory","."]
code: def test_core_binary(self):
      """Test binary i/o on core triples factory."""
      tf1 = Nations().training.to_core_triples_factory()
      self.assert_binary_io(tf1, CoreTriplesFactory)
  
imports: import itertools
  import os
  import tempfile
  import unittest
  from contextlib import nullcontext
  from pathlib import Path
  from typing import Any, Collection, Iterable, Mapping, Optional, Tuple
  from unittest.mock import patch
  import numpy
  import pytest
  import torch
  from pykeen.datasets import Hetionet, Nations, SingleTabbedDataset
  from pykeen.datasets.nations import NATIONS_TRAIN_PATH
  from pykeen.triples import CoreTriplesFactory, LCWAInstances, TriplesFactory, TriplesNumericLiteralsFactory
  from pykeen.triples.splitting import splitter_resolver
  from pykeen.triples.triples_factory import INVERSE_SUFFIX, _map_triples_elements_to_ids, get_mapped_triples
  from pykeen.triples.utils import TRIPLES_DF_COLUMNS, load_triples
  from tests.constants import RESOURCES
  from tests.utils import needs_packages
label_desc: Use image node_id 4 for calling the TestUtils obj's underlying member method code with example usage: obj.test_core_binary() without return types