code: def test_embedded_document(self):
      label1 = fo.Classification(label="cat", logits=np.arange(4))
  
      label2 = fo.Classification(label="cat", logits=np.arange(4))
  
      d1 = label1.to_dict()
      d2 = label2.to_dict()
      d1.pop("_id")
      d2.pop("_id")
      self.assertDictEqual(d1, d2)
  
      d = label1.to_dict()
      self.assertEqual(fo.Classification.from_dict(d), label1)
  
      s = label1.to_json(pretty_print=False)
      self.assertEqual(fo.Classification.from_json(s), label1)
  
      s = label1.to_json(pretty_print=True)
      self.assertEqual(fo.Classification.from_json(s), label1)
  
imports: import time
  import unittest
  from unittest.mock import MagicMock, patch
  import numpy
  import fiftyone
  import fiftyone.constants
  import fiftyone.core.media
  import fiftyone.core.odm
  import fiftyone.core.utils
  from fiftyone.migrations.runner import MigrationRunner
  from decorators import drop_datasets
  from bson import ObjectId
  from fiftyone.core.odm.utils import load_dataset
label_desc: Use image node_id 1 for calling the SerializationTests obj's underlying member method code with example usage: obj.test_embedded_document() without return types