code: def test_list_enabled_plugins(mocker, fiftyone_plugins_dir):
      mocker.patch("fiftyone.config.plugins_dir", fiftyone_plugins_dir)
      assert fo.config.plugins_dir == fiftyone_plugins_dir
  
      # enable all
      for p in fop.list_disabled_plugins():
          fop.enable_plugin(p)
      initial = fop.list_enabled_plugins()
      expected = [n + "-name" for n in _DEFAULT_TEST_PLUGINS]
      downloaded = fop.list_downloaded_plugins()
  
      assert len(initial) == len(expected)
      assert set(initial) == set(expected)
  
      # disable one
      disabled = expected.pop()
      fop.disable_plugin(disabled)
  
      # verify that disabled plugin not in enabled list but still in downloaded
      actual = fop.list_enabled_plugins()
      assert disabled not in actual
      assert disabled in downloaded
      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 8 for calling a global function with example usage: test_list_enabled_plugins(mocker, fiftyone_plugins_dir) without return types