code: def test_raises_if_directory_exists(tmp_path):
      with pytest.raises(
          Exception
      ):  # Keeping it a general exception since the specific exception seems to differ between operating systems
          _create("MyComponent", tmp_path, configure_metadata=False)
  
file_path: gradio/test/test_gradio_component_cli.py
imports: import shutil
  import textwrap
  from pathlib import Path
  import pytest
  from gradio.cli.commands.components._create_utils import OVERRIDES
  from gradio.cli.commands.components.create import _create
  from gradio.cli.commands.components.publish import _get_version_from_file
  from gradio.cli.commands.components.show import _show
label_desc: Use image node_id 4 for calling a global function with example usage: test_raises_if_directory_exists(tmp_path) without return types