code: def test_delete_plugin_success(mocker, fiftyone_plugins_dir):
      mocker.patch("fiftyone.config.plugins_dir", fiftyone_plugins_dir)
      assert fo.config.plugins_dir == fiftyone_plugins_dir
      before_delete = fop.list_downloaded_plugins()
      to_delete = before_delete.pop()
      fop.delete_plugin(to_delete)
      after_delete = fop.list_downloaded_plugins()
      assert to_delete not in after_delete
      assert set(before_delete) == set(after_delete)
  
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 6 for calling a global function with example usage: test_delete_plugin_success(mocker, fiftyone_plugins_dir) without return types