code: def test_list_downloaded_plugins(mocker, fiftyone_plugins_dir):
      mocker.patch("fiftyone.config.plugins_dir", fiftyone_plugins_dir)
      assert fo.config.plugins_dir == fiftyone_plugins_dir
  
      actual = fop.list_downloaded_plugins()
  
      # Test that the exact `name` from yml file is used
      expected = [n + "-name" for n in _DEFAULT_TEST_PLUGINS]
      assert len(actual) == len(expected)
      assert set(actual) == set(expected)
  
file_path: fiftyone/tests/unittests/plugins/core_tests.py
imports: import os
  import fiftyone
  import pytest
  import json
  import yaml
  from unittest import mock
  import fiftyone.plugins
label_desc: Use image node_id 7 for calling a global function with example usage: test_list_downloaded_plugins(mocker, fiftyone_plugins_dir) without return types