code: def fiftyone_plugins_dir(tmp_path_factory):
      fn = tmp_path_factory.mktemp("fiftyone-plugins")
      for plugin in _DEFAULT_TEST_PLUGINS:
          os.makedirs(fn / plugin, exist_ok=True)
          with open(fn / plugin / "fiftyone.yml", "w") as f:
              pd = {k: plugin + "-" + k for k in _REQUIRED_YML_KEYS}
              f.write(yaml.dump(pd))
      return fn
  
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 3 for calling a global function with example usage: fiftyone_plugins_dir(tmp_path_factory) and returns: fn