code: def _assert_embedding_dicts_equal(embeddings_dict1, embeddings_dict2):
      assert set(embeddings_dict1.keys()) == set(
          embeddings_dict2.keys()
      )
      for key, embeddings1 in embeddings_dict1.items():
          embeddings2 = embeddings_dict2[key]
          assert np.allclose(embeddings1, embeddings2)
  
imports: import unittest
  import numpy
  import pytest
  import fiftyone
  import fiftyone.zoo
  import fiftyone.utils.torch
label_desc: Use image node_id 8 for calling a global function with example usage: _assert_embedding_dicts_equal(embeddings_dict1, embeddings_dict2) without return types