code: def expected_class_string():
      # The expected result for both class string and class file generation
      expected_string_path = os.path.join(_dir, "metadata_test.py")
      with open(expected_string_path, "r") as f:
          return f.read()
  
file_path: dash/tests/unit/development/test_generate_class_file.py
imports: import os
  import shutil
  from difflib import unified_diff
  import pytest
  from dash.development._py_components_generation import generate_class_string, generate_class_file
  from .None import _dir, has_trailing_space
label_desc: Use image node_id 2 for calling a global function with example usage: expected_class_string() and returns: f