code: def test_torch_hub_feature_extractor():
      dataset = foz.load_zoo_dataset("quickstart")
      view = dataset.take(5)
  
      model = fout.load_torch_hub_image_model(
          "facebookresearch/dino:main",
          "dino_vits16",
          as_feature_extractor=True,
          image_size=[224, 224],
      )
  
      embeddings1a = view.compute_embeddings(model, skip_failures=False)
      view.compute_embeddings(model, embeddings_field="embeddings1")
      embeddings1b = _load_embeddings(view, "embeddings1")
      _assert_embeddings_equal(embeddings1a, embeddings1b)
  
      with pytest.raises(ValueError):
          fout.load_torch_hub_image_model(
              "facebookresearch/dino:main",
              "dino_vits16",
              embeddings_layer="head",
              image_size=[224, 224],
          )
  
imports: import unittest
  import numpy
  import pytest
  import fiftyone
  import fiftyone.zoo
  import fiftyone.utils.torch
label_desc: Use image node_id 3 for calling a global function with example usage: test_torch_hub_feature_extractor() without return types