code: def write_metadata_file():
      with open(METADATA_PATH, "w") as f:
          f.write(METADATA_STRING)
      yield
      os.remove(METADATA_PATH)
  
file_path: dash/tests/unit/development/test_component_loader.py
imports: import collections
  import json
  import os
  import shutil
  import pytest
  from dash.development._py_components_generation import generate_class
  from dash.development.base_component import Component
  from dash.development.component_loader import load_components, generate_classes
label_desc: Use image node_id 1 for calling a global function with example usage: write_metadata_file() without return types