code: def _replace_old_class_name(
      old_class_name: str, new_class_name: str, content: str
  ):
      pattern = rf"(?<=\b)(?<!\bimport\s)(?<!\.){re.escape(old_class_name)}(?=\b)"
      return re.sub(pattern, new_class_name, content)
  
imports: from __future__ import annotations
  import dataclasses
  import inspect
  import json
  import re
  import shutil
  import textwrap
  from pathlib import Path
  from typing import Literal
  import gradio
label_desc: Use image node_id 7 for calling a global function with example usage: _replace_old_class_name(old_class_name, new_class_name, content) and returns: re