code: def test_compute_patch_embeddings_frames():
      dataset = foz.load_zoo_dataset("quickstart-video")
      view = dataset.take(1)
  
      model = foz.load_zoo_model("inception-v3-imagenet-torch")
  
      patch_embeddings1a = view.compute_patch_embeddings(
          model, "frames.detections"
      )
      view.compute_patch_embeddings(
          model,
          "frames.detections",
          embeddings_field="patch_embeddings1",
      )
      patch_embeddings1b = _load_frame_patch_embeddings(
          view, "frames.detections.detections.patch_embeddings1"
      )
      _assert_frame_embedding_dicts_equal(
          patch_embeddings1a, patch_embeddings1b
      )
  
      patch_embeddings2a = view.compute_patch_embeddings(
          model, "frames.detections", batch_size=8
      )
      view.compute_patch_embeddings(
          model,
          "frames.detections",
          embeddings_field="patch_embeddings2",
      )
      patch_embeddings2b = _load_frame_patch_embeddings(
          view, "frames.detections.detections.patch_embeddings2"
      )
      _assert_frame_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 12 for calling a global function with example usage: test_compute_patch_embeddings_frames() without return types