code: def process_class(cls, cls_name, cls_doc_items, content):
      """
      Processes a given class to replace attribute docstring markers with actual attribute docstrings.
  
      Raises
      ------
      Exception
          If attr_string is not found in the content.
      """
      attr_string = extract_string_between_markers(
          content, f"<{cls_name.split('.', 1)[-1]}{DOC_ATTR}", ">"
      )
      attrs = [attr.strip() for attr in attr_string.split("\n")[1:-1]]
      if attr_string in content:
          attrs_docstring = generate_attrs_docstring(
              cls_name, attrs, cls_doc_items["attrs"]
          )
          indent = " " * (cls.col_offset + 4)
          content = content.replace(
              attr_string, add_indent(attrs_docstring, indent)
          )
      else:
          raise Exception(
              f"Cannot find {attr_string} in {cls_name} docstring"
          )
  
      return content
  
imports: import ast
  import json
  import re
  import argparse
  import textwrap
  import os
  from collections import defaultdict
label_desc: Use image node_id 9 for calling a global function with example usage: process_class(cls, cls_name, cls_doc_items, content) and returns: content