code: def test_compute_embeddings():
      dataset = foz.load_zoo_dataset("quickstart")
      view = dataset.take(50)
  
      model = foz.load_zoo_model("inception-v3-imagenet-torch")
  
      embeddings1a = view.compute_embeddings(model)
      view.compute_embeddings(model, embeddings_field="embeddings1")
      embeddings1b = _load_embeddings(view, "embeddings1")
      _assert_embeddings_equal(embeddings1a, embeddings1b)
  
      embeddings2a = view.compute_embeddings(model, batch_size=8)
      view.compute_embeddings(
          model, embeddings_field="embeddings2", batch_size=8
      )
      embeddings2b = _load_embeddings(view, "embeddings2")
      _assert_embeddings_equal(embeddings2a, embeddings2b)
  
imports: import unittest
  import numpy
  import pytest
  import fiftyone
  import fiftyone.zoo
  import fiftyone.utils.torch
label_desc: Use image node_id 2 for calling a global function with example usage: test_compute_embeddings() without return types