code: def get_protocol_changes() -> str:
      """Generate change log of the dev protocol state."""
      script_path = os.path.dirname(os.path.realpath(__file__))
      protocol_path = Path(
          os.path.normpath(
              os.path.join(
                  script_path,
                  "../../",
                  "syft/src/syft/protocol",
                  "protocol_version.json",
              )
          )
      )
  
      protocol_changes = ""
      if protocol_path.exists():
          dev_protocol_changes = json.loads(
              protocol_path.read_text()
          ).get("dev", {})
          protocol_changes = json.dumps(
              dev_protocol_changes.get("object_versions", {}), indent=4
          )
  
      protocol_changelog = f"""
      Following class versions are either added/removed.
  
      {protocol_changes}
  
      This means the existing data will be automatically be migrated to
      their latest class versions during the upgrade.
      """
  
      return protocol_changelog
  
imports: import json
  import os
  from pathlib import Path
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_protocol_changes() and returns: protocol_changelog