code: def test_find_plugin_error_duplicate_name(
      mocker, fiftyone_plugins_dir
  ):
      mocker.patch("fiftyone.config.plugins_dir", fiftyone_plugins_dir)
  
      plugin_name = "test-plugin1"
      dup_plugin_dir = fiftyone_plugins_dir / "test-plugin2"
      m = mock.Mock(
          spec=fop.core.PluginPackage(plugin_name, "path/to/plugin")
      )
      with open(os.path.join(dup_plugin_dir, "fiftyone.yml"), "w") as f:
          pd = {k: plugin_name + "-" + k for k in _REQUIRED_YML_KEYS}
          f.write(yaml.dump(pd))
  
      with pytest.raises(ValueError):
          _ = fop.find_plugin("test-plugin1-name")
  
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 12 for calling a global function with example usage: test_find_plugin_error_duplicate_name(mocker, fiftyone_plugins_dir) without return types