code: def clean_main_ref_in_model_list():
      """Replace the links from main doc tp stable doc in the model list of the README."""
      # If the introduction or the conclusion of the list change, the prompts may need to be updated.
      _start_prompt = "🤗 Transformers currently provides the following architectures"
      _end_prompt = "1. Want to contribute a new model?"
      with open(README_FILE, "r", encoding="utf-8", newline="\n") as f:
          lines = f.readlines()
  
      # Find the start of the list.
      start_index = 0
      while not lines[start_index].startswith(_start_prompt):
          start_index += 1
      start_index += 1
  
      index = start_index
      # Update the lines in the model list.
      while not lines[index].startswith(_end_prompt):
          if lines[index].startswith("1."):
              lines[index] = lines[index].replace(
                  "https://huggingface.co/docs/transformers/main/model_doc",
                  "https://huggingface.co/docs/transformers/model_doc",
              )
          index += 1
  
      with open(README_FILE, "w", encoding="utf-8", newline="\n") as f:
          f.writelines(lines)
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/utils/release.py
imports: import argparse
  import os
  import re
  import packaging.version
label_desc: Use image node_id 4 for calling a global function with example usage: clean_main_ref_in_model_list() without return types