code: def test_compute_patch_embeddings():
      dataset = foz.load_zoo_dataset("quickstart")
      view = dataset.take(5)
  
      model = foz.load_zoo_model("inception-v3-imagenet-torch")
  
      patch_embeddings1a = view.compute_patch_embeddings(
          model, "ground_truth"
      )
      view.compute_patch_embeddings(
          model, "ground_truth", embeddings_field="patch_embeddings1"
      )
      patch_embeddings1b = _load_patch_embeddings(
          view, "ground_truth.detections.patch_embeddings1"
      )
      _assert_embedding_dicts_equal(
          patch_embeddings1a, patch_embeddings1b
      )
  
      patch_embeddings2a = view.compute_patch_embeddings(
          model, "ground_truth", batch_size=8
      )
      view.compute_patch_embeddings(
          model, "ground_truth", embeddings_field="patch_embeddings2"
      )
      patch_embeddings2b = _load_patch_embeddings(
          view, "ground_truth.detections.patch_embeddings2"
      )
      _assert_embedding_dicts_equal(
          patch_embeddings2a, patch_embeddings2b
      )
  
imports: import unittest
  import numpy
  import pytest
  import fiftyone
  import fiftyone.zoo
  import fiftyone.utils.torch
label_desc: Use image node_id 6 for calling a global function with example usage: test_compute_patch_embeddings() without return types